Use cse() (common subexpression elimination).  It will replace the  
logs with dummy variables, which you can then see is a polynomial.
In [8]: cse((log(x) + 1)-((log(x)**3+7)))
Out[8]: ([(x0, log(x))], [-6 + x0 - x0**3])

I think you can then tell that this is a Polynomial by trying to  
instantiate a Poly class with it and seeing if it raises an error, but  
there is probably a better way than this.

Aaron Meurer
On Jul 15, 2009, at 5:43 AM, Christophe wrote:

>
> Hello,
> I would like to know that for example (log(x) + 1)-((log(x)**3+7) is a
> polynom of log(x). How can I do ?
>
> Best regards.
> Christophe.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to