Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In addition, symbolic functions have an integrate method. For example, given the function latexf(x)=sin(x)tan(x),

sage: var('x')
sage: f = sin(x)*tan(x)

its symbolic integral is calculated like so:

sage: f.integrate(x)
-1/2*log(sin(x) - 1) + 1/2*log(sin(x) + 1) - sin(x)

Be sure to provide the variable you wish to integrate with respect to as an argument to integrate.

click to hide/show revision 2
No.2 Revision

In addition, symbolic functions have an integrate method. For example, given the function $latex f(x) $$f(x) = \sin(x)\tan(x)$,\sin(x)\tan(x)$$,

sage: var('x')
sage: f = sin(x)*tan(x)

its symbolic integral is calculated like so:

sage: f.integrate(x)
-1/2*log(sin(x) - 1) + 1/2*log(sin(x) + 1) - sin(x)

Be sure to provide the variable you wish to integrate with respect to as an argument to integrate.

click to hide/show revision 3
No.3 Revision

updated 14 years ago

Evgeny gravatar image

In addition, symbolic functions have an integrate method. For example, given the function $$f(x) $f(x) = \sin(x)\tan(x)$$,\sin(x)\tan(x)$,

sage: var('x')
sage: f = sin(x)*tan(x)

its symbolic integral is calculated like so:

sage: f.integrate(x)
-1/2*log(sin(x) - 1) + 1/2*log(sin(x) + 1) - sin(x)

Be sure to provide the variable you wish to integrate with respect to as an argument to integrate.