math_solve
Solves algebraic equations, differential equations, and systems of equations symbolically with optional variable specification.
Instructions
求解方程或方程组。
equation: 方程,支持三种写法: (1) 'x^2 - 4 = 0'(显式等式) (2) 'x^2 - 4'(隐式 = 0) (3) 方程组: 'x + y = 10, 2*x - y = 5' 配合 variables='x,y' (4) 微分方程: 'Derivative(f(x),x) + f(x)' 配合 function='f' variables: 待求解变量,默认 'x'。方程组用逗号分隔: 'x,y,z'。 equation_type: 'auto'(自动检测)、'algebraic'、'differential'、'system'。 function: 微分方程中的未知函数名,默认自动从表达式中提取(如 f(x) → f)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| equation | Yes | ||
| variables | No | x | |
| equation_type | No | auto | |
| function | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |