grzegorzmazur / yacas

Computer calculations made easy
http://www.yacas.org
GNU Lesser General Public License v2.1
120 stars 23 forks source link

yacas should simplify Pi out of expressions like (9*Pi)/(6*Pi). #332

Closed ChrisALuke closed 3 years ago

ChrisALuke commented 3 years ago

When Simplify is called on "(6*x)/(4*x)" you get "3/2" or "(a*x)/(b*x)" you get "a/b".

However when called on "(6*Pi)/(4*Pi)" you get a "Max evaluation stack depth reached." error. While "Simplify((a*Pi)/(b*Pi))" correctly returns a/b.

grzegorzmazur commented 3 years ago

Thanks for spotting it!

ChrisALuke commented 3 years ago

Thanks for the fast fix.