On Thursday, 26 July 2012 18:43:05 UTC-4, Matthew Emmett wrote:
>
> Hi everyone, 
>
> I have some sympy code that generates Fortran code, and was wondering 
> if there a good way of simplifying the sympy expressions in order to 
> minimize the number of floating point operations that are required to 
> evaluate them numerically.  Any suggestions? 
>
> Thanks, 
> Matt 
>

If you're working with polynomials, there is a function that returns the 
Horner form in the polys module, reducing the number of operations.

Cheers,
Julien 

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sympy/-/xuqvq61vQiAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to