Closed emsal0 closed 10 years ago
irb(main):008:0> (3*x + 4*x).to_s => "( x * 7 )" irb(main):009:0> (3*x + 4*(x^2)+ 4*x).to_s => "( ( ( 3 * x ) + ( 4 * ( x ^ 2 ) ) ) + ( 4 * x ) )"
irb(main):008:0> (3*x + 4*x).to_s
=> "( x * 7 )"
irb(main):009:0> (3*x + 4*(x^2)+ 4*x).to_s
=> "( ( ( 3 * x ) + ( 4 * ( x ^ 2 ) ) ) + ( 4 * x ) )"
@AbsoluteZero2A03 thank you!!
I really appriciate you.
I try to fix it.
@AbsoluteZero2A03
修正しました!(ver. 0.1.28)
(3x + 4(x^2)+ 4x) => ( ( 7 * x ) + ( 4 \ ( x ^ 2 ) ) )
irb(main):008:0> (3*x + 4*x).to_s
=> "( x * 7 )"
irb(main):009:0> (3*x + 4*(x^2)+ 4*x).to_s
=> "( ( ( 3 * x ) + ( 4 * ( x ^ 2 ) ) ) + ( 4 * x ) )"