Back to functions
defint
definite integral
Attempts to compute the definite integral of the expression. Assumes that function is continuous over interval when integrating numerically.
Usage: nerdamer("defint(expression_or_vector, from, to, dx)")
Parameters
expression
expression_or_vector
|
Returns the appropriate value if possible otherwise it returns the function with the simplified expression |
expression
dx
|
The variable with respect to which integrate. Optional with univariate expression. |
expression
from
|
The lower limit of integration |
expression
to
|
The upper limit of integration |
Returns
Expression
var x = nerdamer('defint(e^(cos(x)), 1, 2)');
console.log(x.text());
var y = nerdamer('defint(x^2+2*x+1,0, 10)');
console.log(y.text());
var y = nerdamer('defint(log(2cos(x/2)),-π,π,x)');
console.log(y.text());