On Tue, Mar 18, 2014 at 8:23 AM, Vinzent Steinberg
<[email protected]> wrote:
> Regarding the cancellation issues: Isn't it possible to rewrite expressions
> such that they give smaller rounding errors when evaluated using floating
> point arithmetic? (Like x^2 - y^2 = (x + y)(x - y).)
> Sympy could do this.

Sometimes it can help to do this, but sometimes the only solution is
some adaptive arbitrary precision,
as sympy does in the .n() function.

>
> Does anyone know of some work on rewriting general expressions into
> numerically more favorable forms?



Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CADDwiVABHVQM0K%2B9faS9gQw-6y8z8xRju0Z7poarK1-oedh-5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to