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
SymPy does all kind of transformations of equations to replace constant terms (e.g. it will replace exp(0) by 1), and that is of course desirable in general. However, in the context of the exprel function which is not used for its mathematical properties but rather for accuracy reasons, this can be problematic. The situation for this actually got a bit better since we no longer considered all numerical literals as floating point values, but I think it is still problematic.
Here's a quick example:
In the second formulation, we lose all the advantage of the numerically more accurate exprel function. I guess the same also applies to expm1 et log1p.
The text was updated successfully, but these errors were encountered:
SymPy does all kind of transformations of equations to replace constant terms (e.g. it will replace
exp(0)
by1
), and that is of course desirable in general. However, in the context of theexprel
function which is not used for its mathematical properties but rather for accuracy reasons, this can be problematic. The situation for this actually got a bit better since we no longer considered all numerical literals as floating point values, but I think it is still problematic.Here's a quick example:
In the second formulation, we lose all the advantage of the numerically more accurate
exprel
function. I guess the same also applies toexpm1
etlog1p
.The text was updated successfully, but these errors were encountered: