[sympy] factor

2010-01-13 Thread czbebe
Dear member, x = sympy.symbols('x') sympy.factor('x**2+x) =x(1+x) sympy.factor('x**2*cos(x)+x*cos(x)') sympy.polys.polynomial.PolynomialError: Can't decompose cos(x) How can I factorize above term ? maybe x(1+x)cos(x) czbebe -- You received this message bec

[sympy] Re: diff(diff)

2010-01-05 Thread czbebe
Thanks Aaron, To my needs, import sympy import math diff(sympy.sin(x)*diff(u(x),x),x) is a good choice because math functions are used in other places. I will try this. czbebe On 1月6日, 午後12:11, "Aaron S. Meurer" wrote: > On Jan 5, 2010, at 7:32 PM, czbebe wrote: >

[sympy] diff(diff)

2010-01-05 Thread czbebe
way to get a correct result ? czbebe -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more opti

[sympy] Re: diff f(x)

2010-01-04 Thread czbebe
Thank you for your reply. I suceeded to run the code. >>> f = Function('f') >>> x = Symbol('x') >>> diff(f(x),x) D(f(x), x) How about second derivatives ? I mean diff(D(f(x), x),x) Is there any way to get the answer ? Thanks in advance, czbebe On

[sympy] Re: diff pow

2009-12-08 Thread czbebe
Thanks Ondrej, Yes, "Pow" function is all right. To my problem, "pow" is converted to "Pow". However it is tentative solution and I hope "pow" should be treated formally. czbebe On 12月8日, 午後1:49, Ondrej Certik wrote: > 2009/12/7 czbebe : > >

[sympy] Re: diff pow

2009-12-07 Thread czbebe
en if simple x**2 is converted to pow(x,2). czbebe On 12月8日, 午前11:25, Ondrej Certik wrote: > On Mon, Dec 7, 2009 at 5:57 PM, czbebe wrote: > > Hi, > > > Following porblem I met. > > > import sympy > > x = sympy.symbols('x') > > f = 'pow(x,2)&#

[sympy] diff pow

2009-12-07 Thread czbebe
Why f = 'pow(x,2)' can't give correct answer ? czbebe -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@