One interesting thing to note here is that *solve('x**5 + x**3 + 1')* shows 
solution in terms of RootOf, But when we add decimal in the equation then 
it shows *polynomial error*

In [35]: solution = [N(w.n(4)) for w in solve('x**5 + x**3 + 9/2' , 'x')]

In [36]: solution
Out[36]:
[-1.21881103515625,
 -0.358932495117188 - 1.43544006347656*I,
 -0.358932495117188 + 1.43544006347656*I,
 0.968338012695313 - 0.865318298339844*I,
 0.968338012695313 + 0.865318298339844*I]

In [37]: solution = [N(w.n(4)) for w in solve('x**5 + x**3 + 1.5' , 'x')]
---------------------------------------------------------------------------
PolynomialError                           Traceback (most recent call last)

On Wednesday, June 5, 2013 2:46:16 PM UTC+5:30, Abhishek kumawat wrote:
>
> When i solve  'x**5 + x**3 + 1', it shows solution as 
> [RootOf(x**5 + x**3 + 1, 0),
>  RootOf(x**5 + x**3 + 1, 1),
>  RootOf(x**5 + x**3 + 1, 2),
>  RootOf(x**5 + x**3 + 1, 3),
>  RootOf(x**5 + x**3 + 1, 4)]
>
> How to get solution of this equation using sympy.
> Image of the same is attached
>
>
> <https://lh6.googleusercontent.com/-X6chv6Uv09c/Ua8ByKhGqYI/AAAAAAAAAEo/wLGSedGo9jg/s1600/rootof.png>
>
>

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to