plot_math_function
Generate 2D mathematical function plots using Desmos API or local rendering. Visualize equations with customizable x and y ranges for mathematical analysis and graphing.
Instructions
Generates a 2D plot. Tries Desmos API if available, otherwise falls back to local rendering.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
formula | Yes | ||
use_api | No | ||
x_range | No | ||
y_range | No |
Input Schema (JSON Schema)
{
"properties": {
"formula": {
"title": "Formula",
"type": "string"
},
"use_api": {
"default": true,
"title": "Use Api",
"type": "boolean"
},
"x_range": {
"anyOf": [
{
"items": {
"type": "number"
},
"type": "array"
},
{
"type": "null"
}
],
"default": [
-10,
10
],
"title": "X Range"
},
"y_range": {
"anyOf": [
{
"items": {
"type": "number"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Y Range"
}
},
"required": [
"formula"
],
"type": "object"
}