The difference is only a few hundred milliseconds for me on SymPy
master (it's a 4x difference, but time that small could end up
corresponding to something trivial). You'd need to profile the
functions to see the difference. LIkely one is taking a slightly
different code path than the other.

Aaron Meurer

On Fri, Oct 21, 2016 at 1:02 PM, Marco Inacio <[email protected]> wrote:
> Hi, out of curiosity I wanted to know why does this:
>
> from sympy.solvers import solve
> from sympy import Symbol,exp
> x=Symbol("x")
> solve(x*10e-4+exp(x),x)
>
>
> runs much faster than this:
>
> from sympy.solvers import solve
> from sympy import Symbol,exp
> x=Symbol("x")
> solve(x+exp(x/10e-4),x)
>
>
> (?) Thanks!
>
> --
> 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 https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/e9c9c294-066b-4149-8ae9-82c7b48ed3ac%40googlegroups.com.
> 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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6JfVfPuGTZ1eBAj08VbEJo2_yqJ94QuMdTz%2B-JsxwjbNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to