Plot and analyse equations
plot_equationsAnalyse and plot one or more equations on a single set of axes.
Accepted inputs (one string per equation):
explicit: "y = x^2 - 3x + 2", "f(x) = 1/(x-2)", bare "x^3 - x"
implicit: "x^2 + y^2 = 25", "x^2/9 - y^2/4 = 1", "xy = 1"
parametric: "x = cos(t), y = sin(t)" - polar: "r = 1 + cos(theta)", "r^2 = 4cos(2theta)"
inequalities (shaded): "y > x^2", "x^2 + y^2 <= 9"
LaTeX subset: "y = \frac{1}{x-2}" Syntax: ^ for powers, implicit multiplication (3x, 2sin x), constants pi and e, functions sin cos tan sec csc cot asin acos atan sinh cosh tanh exp ln log (base 10) sqrt cbrt abs floor ceil.
Returns JSON text (schema version "1.0"; errors come back as {"error": {code, message}}) plus the graph as an image. Ranges are [min, max]; values may be numbers or strings like "2pi".
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": {
"equations": "<equations>"
},
"name": "plot_equations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| t_range | No | Parameter range for parametric curves | |
| timeout | No | Symbolic analysis budget in seconds (max 15) | |
| x_range | No | [min, max]; numbers or expressions like '-2pi' | |
| y_range | No | [min, max]; numbers or expressions like '-2pi' | |
| equations | Yes | Equations to plot together (1-8) | |
| theta_range | No | Theta range for polar curves | |
| image_format | No | png (shown inline), svg (returned base64 inside the JSON), or none | png |