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: 积分上限。
返回: 定积分的值以及绝对误差估计。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>",
"lower": "<lower>",
"upper": "<upper>"
},
"name": "integrate_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lower | Yes | ||
| upper | Yes | ||
| expression | Yes |