On Thu, Jan 29, 2015 at 6:46 PM, Colin Macdonald <[email protected]>
wrote:

> On 29/01/15 13:12, Aaron Meurer wrote:
> > I'd say nsolve and lambdify should be able to do it. Especially for
> > lambdify, I don't see the point of using mpmath if you aren't going to
> > support arbitrary precision.
>
> Yes nsolve definitely should work with arbitrary precision (#8564)
>
> I was unsure about lambdify, I don't really understand precisely what it
> is supposed to do.  So thanks for your comment.  Presumably speed is
> important: perhaps it should do different things depending on whether
> the inputs have more than 15 digits precision.
>

lambdify just creates a lambda function in the namespace of the given
module. So lambdify(x, sympy.sin(x), 'mpmath') creates effectively lambda
x: mpmath.sin(x). Editing the mpmath precision should affect the output
(does it not?). Note that pure mpmath uses a global precision, which is a
little harder to work with than Float.

Aaron Meurer


> @moorepants in #8818 suggests some refactoring, but I'm not sure when
> I'll get to any of this :(  I worked around it in octsympy, by avoiding
> nsolve (and lambdify), and working with mpmath.mp.findroot directly.
>
> Colin
>
>
> --
> 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/54CAD450.2050802%40maths.ox.ac.uk.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAKgW%3D6K8PRknkfrPUHzzuL8gaewFuJzmB1hhFFxcjr97G76uSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to