reverse_verify
Verify a mathematical result by applying the reverse operation: integrate derivatives, differentiate integrals, or substitute solutions back to confirm they match the original expression.
Instructions
Verify a result by applying the reverse operation.
This is a key verification method:
- Derivative → integrate back
- Integral → differentiate back
- Solve → substitute back
Args:
result_expr: The computed result
original_expr: The original expression
operation: "differentiate", "integrate", or "solve"
variable: Variable involved
Returns:
Verification result
Examples:
reverse_verify("3*x**2", "x**3", "differentiate")
→ Integrates 3*x² and checks if it gives x³
reverse_verify("x**3/3", "x**2", "integrate")
→ Differentiates x³/3 and checks if it gives x²
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | No | x | |
| operation | Yes | ||
| result_expr | Yes | ||
| original_expr | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||