leesugil / symbolic

Symbolic calculator for arithmetic operations with fractions
GNU General Public License v3.0
1 stars 0 forks source link

distributive law #5

Closed leesugil closed 5 months ago

leesugil commented 5 months ago

f = a x^2 + b x^1 + c x^0 g = y f ==> y a x^2 + y b x^1 + c * x^0

distribution not working properly

leesugil commented 5 months ago

updated the distribution algo to be preorder traversal. resolved.