integrate_function
Computes the definite integral of a mathematical expression in variable x over a specified interval [lower, upper], returning the value and error estimate.
Instructions
对单变量函数在区间 [lower, upper] 上做数值积分。
参数: expression: 以 'x' 为变量的数学表达式,例如 "sin(x) * x**2"。 支持标准数学函数与常量(pi、e)。 lower: 积分下限。 upper: 积分上限。
返回: 定积分的值以及绝对误差估计。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lower | Yes | ||
| upper | Yes | ||
| expression | Yes |