I can get the string representation of 
(-6x**2-x-7)*(2*x**3+3*x**2-2*x-5),is there anyway we can use this string 
directly to  find the derivative?
>>> from sympy.parsing.mathematica import *
>>> parse('(-6x^2-x-7)(2x^3+3x^2-2x-5)')
'(-6x**2-x-7)*(2*x**3+3*x**2-2*x-5)'

在 2014年10月8日星期三UTC+8下午8时17分47秒,Jason Moore写道:
>
> We don't have a full LaTeX parser in SymPy. If this is the only expression 
> you are interested in, simply:
>
> import sympy
> x = sympy.symbols('x')
> expr = (-6 * x**2 - x - 7) * (2 * x**3 + 3 * x**2 - 2 * x - 5)
> expr.diff(x)
>
>
> Jason
> moorepants.info
> +01 530-601-9791
>
> On Wed, Oct 8, 2014 at 6:05 AM, <[email protected] <javascript:>> wrote:
>
>> Is there any function in SymPy can take this TEX command as an input
>>
>> (-6x^2-x-7)(2x^3+3x^2-2x-5)
>>
>> to find the derivative?
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> 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/04e0cbd4-5b6b-4418-8166-024a0729aff8%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/sympy/04e0cbd4-5b6b-4418-8166-024a0729aff8%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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/110f89bd-4070-48f0-b40e-ae9631147098%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to