To compute
:
sage: diff(sin(x^2), x, 4) 16*x^4*sin(x^2) - 12*sin(x^2) - 48*x^2*cos(x^2)
To compute,
,
:
sage: x, y = var('x,y')
sage: f = x^2 + 17*y^2
sage: f.diff(x)
2*x
sage: f.diff(y)
34*y
To compute
,
:
sage: integral(x*sin(x^2), x)
-cos(x^2)/2
sage: integral(x/(x^2+1), x, 0, 1)
log(2)/2
To compute the partial fraction decomposition of
:
sage: f = 1/((1+x)*(x-1))
sage: f.partial_fraction(x)
1/(2*(x - 1)) - 1/(2*(x + 1))
sage: print f.partial_fraction(x)
1 1
--------- - ---------
2 (x - 1) 2 (x + 1)
To compute the Laplace transform of
:
sage: s = var("s")
sage: t = var("t")
sage: f = t^2*exp(t) - sin(t)
sage: f.laplace(t,s)
2/(s - 1)^3 - 1/(s^2 + 1)
See About this document... for information on suggesting changes.