math_manipulate
Transform and simplify mathematical expressions with operations like simplify, expand, factor, cancel, and more. Supports trigonometric and radical simplification, partial fractions, and domain computation.
Instructions
表达式变换与化简。
expression: 数学表达式。 operation: simplify — 通用化简 expand — 展开 factor — 因式分解 cancel — 约分有理函数 apart — 部分分式分解 together — 通分 collect — 按变量合并同类项(会用 variable 参数或自动选主变量) trigsimp — 三角化简 radsimp — 根式化简 piecewise_fold — 分段函数折叠 domain — 求定义域 variable: 用于 collect 操作的变量名(可选,不填则自动选第一个自由变量)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | ||
| operation | No | simplify | |
| variable | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |