[英]Evaluate integral limits using the antiderivatives expression, with a calculator
THE QUESTION IS问题是
Is there a compact way to evaluate an antidevivative expression: x**3 / 2 | x = a; x = b
是否有一种紧凑的方法来评估抗衍生表达式:
x**3 / 2 | x = a; x = b
x**3 / 2 | x = a; x = b
When we have an indefinite integral of the form:当我们有以下形式的不定积分时:
# Pseudocode as I cannot write it in math mode
expr = x**2; a = 1; b = 5;
F = integral(expr, x); # integral of expr
Definite_integral = F.subs(x, b) - F.subs(x, a);
We can also do this by just using the built-in integrate function我们也可以通过使用内置的集成 function 来做到这一点
# Pseudocode
expr = x**2;
a = 1; b = 5;
Definite_integra = integrate(expr, x, a, b) # integrate expr from a to b
However, the problem is that I start with an expression for the antiderivative然而,问题是我从反导数的表达式开始
x**3 / 3
Ideally, I'd just want to express it with itegration brackets, example:理想情况下,我只想用 itegration 括号来表达它,例如:
I don't want to repeat myself and write the expression twice and I don't really want to declare the expression as a (unnecessary; only used unce) function just to express it as:
f(b) - f(a)
or more in line with Ti Nspire notation: f(x)|x=b - f(x)|x=a
我不想重复自己并写两次表达式,我真的不想将表达式声明为(不必要;仅使用 unce)function 只是为了将其表示为:
f(b) - f(a)
或更符合 Ti Nspire 表示法: f(x)|x=b - f(x)|x=a
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.