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
Yes, this is true. You have to be wary of eager conversion to floating point before a value is converted to a symbolic value. In this case you can use PI (which is the same as PI=Sym(pi)) and the symbolic value will force others numbers to promote to symbolic values.
(As an example. Even this 1/2*PI will be an issue as 1/2 will be a floating point number. To avoid this you can use rationals, as in 1//2 * pi, or reexpress, as in PI/2.
When a NumberSymbol such as
pi
is multiplied by a number or negated, it is converted to a Float64:For comparison, this is the result in python:
This breaks any symbolic computation that involves such constants and their properties, for instance:
The text was updated successfully, but these errors were encountered: