root_aitken
Accelerate fixed-point iteration to find a root using Aitken's delta-squared method, an iteration function g(x), and an initial guess.
Instructions
Accelerate fixed-point iteration with Aitken's delta-squared method.
Args: g_str: Math expression for the iteration function g(x). x0: Initial guess. tol: Convergence tolerance. max_iter: Maximum iterations. precision: Rounding digits. plot: When True, also return a PNG plot of g(x) and y = x.
Returns:
Dict with the accelerated root, iteration table and convergence flag.
With plot=True a list [dict, Image] is returned instead.
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": {
"g_str": "<g_str>",
"x0": "<x0>"
},
"name": "root_aitken"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| tol | No | ||
| plot | No | ||
| g_str | Yes | ||
| max_iter | No | ||
| precision | No |