简体   繁体   English

使用计算器使用反导数表达式评估积分极限

[英]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

You can define bracket using a little helper function. The screenshot below is from the Notes area.您可以使用一个小帮手 function 来定义bracket 。下面的屏幕截图来自注释区域。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM