Calculus Solver
This skill handles symbolic calculus operations.
Strategy
- •Identify the operation (differentiation, integration, limit).
- •Parse the expression into a SymPy object.
- •Apply the appropriate SymPy function (
diff,integrate,limit). - •Format the output as LaTeX.
Template
python
import sympy as sp
def solve(problem):
"""
Solves calculus problems.
Input: problem dictionary with 'text' and 'latex'.
"""
x = sp.Symbol('x')
# logic to parse and solve
# ...
return {
"result": "...",
"steps": []
}