On Tuesday, June 17, 2014 4:01:05 AM UTC-4, Camille Chambon wrote:
>
> Hello Christophe,
>
> Thanks for your answer.
>
> OK. So if my equation is not solvable symbolically, I can't use SymPy? 
> Then I will use a numeric solver, like SciPy.
>

Have a look at `nsolve`, it solves equations numerically given a starting 
point:

>>> nsolve(0.66 + 0.34 * (1 + 1.0 / c2) - 1.0 / ln(1 + c2) - 0.7, c2, 0)
mpf('0.0')
>>> nsolve(0.66 + 0.34 * (1 + 1.0 / c2) - 1.0 / ln(1 + c2) - 0.7, c2, 100)
mpf('22.964256014441664')
 

> And what does mean
>
>> PolynomialError: 1/log(c2 + 1) contains an element of the generators set
>>
> when using the function 
> roots
> ?
> Cheers,
> Camille
>

I think `roots` only works for polynomials, so it fails for your expression.

Vinzent 

-- 
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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
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/fe10caba-3caf-4a0c-af05-76bb3b47a9f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to