darboux_sum
Calculate upper or lower Darboux sums to approximate definite integrals by dividing functions into subintervals. Specify function, limits, and number of intervals for numerical integration.
Instructions
Calculate the Darboux sum of a function
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>",
"variable": "<variable>",
"a": "<a>",
"b": "<b>",
"n": "<n>"
},
"name": "darboux_sum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Function to integrate | |
| variable | Yes | Variable of integration | |
| a | Yes | Lower limit of integration | |
| b | Yes | Upper limit of integration | |
| n | Yes | Number of subintervals | |
| type | No | Type: upper or lower Darboux sum | upper |