gogotanaka / hilbert

:dancers: Implement mathematics.
http://hilbert-lang.org/
553 stars 36 forks source link

Combining like terms #14

Closed emsal0 closed 10 years ago

emsal0 commented 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 ) )"

gogotanaka commented 10 years ago

@AbsoluteZero2A03 thank you!!

I really appriciate you.

I try to fix it.

gogotanaka commented 10 years ago

@AbsoluteZero2A03

修正しました!(ver. 0.1.28)

(3x + 4(x^2)+ 4x) => ( ( 7 * x ) + ( 4 \ ( x ^ 2 ) ) )