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
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:
>
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
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
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 :
>
>
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)
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...@