plot_function_curve
Plot mathematical functions with optional derivative visualization and critical points. Customize graph style, range, and output format.
Instructions
Brief description: Mathematical function curve plotting tool, supporting function graph visualization and derivative analysis.
Examples:
plot_function_curve(function_expression='x**2 + 2*x + 1')
plot_function_curve(function_expression='sin(x)', x_range=(-6.28, 6.28), filename='sine_wave')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_expression | Yes | Function expression with common math functions like sin, cos, exp, log, sqrt | |
| variable | No | Independent variable name | x |
| x_range | No | X-axis range as (min_value, max_value) | |
| num_points | No | Number of plotting points | |
| title | No | Chart title | Function Graph |
| xlabel | No | X-axis label | X Axis |
| ylabel | No | Y-axis label | Y Axis |
| filename | No | Save filename without path and extension | |
| format | No | Image format. Supports: 'png', 'jpg', 'svg' | png |
| figsize | No | Figure size as (width, height) | |
| dpi | No | Image resolution | |
| color | No | Function curve color | blue |
| line_width | No | Line width | |
| grid | No | Whether to display grid | |
| grid_alpha | No | Grid transparency | |
| derivative_order | No | Derivative order for plotting n-th derivative curve | |
| show_critical_points | No | Whether to show critical points (extrema) | |
| show_equation | No | Whether to display function equation on plot | |
| equation_position | No | Equation display position. Supports: 'upper right', 'upper left', 'lower right', 'lower left' | upper right |
| alpha | No | Line transparency | |
| line_style | No | Line style | - |
| marker | No | Data point marker | |
| marker_size | No | Marker size |