You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases simplify returns numeric coefficients as floats. I noticed that it happens e.g. when the top level operation is + , but not if it is /. Here is an example:
using Symbolics
@variables a b x y
simplify( (y-x)*b//a + (y*b - x*b)//a ) # (-2.0b*x + 2.0b*y) / a
simplify( ((y-x)*b + (y*b - x*b))//a ) # (-2b*x + 2b*y) / a
Is there a way to force simplify to return all numeric values as integers or rationals?
The text was updated successfully, but these errors were encountered:
In some cases
simplify
returns numeric coefficients as floats. I noticed that it happens e.g. when the top level operation is+
, but not if it is/
. Here is an example:Is there a way to force
simplify
to return all numeric values as integers or rationals?The text was updated successfully, but these errors were encountered: