Calculator
calculateCompute results for basic arithmetic operations: add, subtract, multiply, divide, power, and sqrt. Supply a and b (or a for sqrt) with the operation to get the answer.
Instructions
Performs a basic arithmetic operation on two numbers. Supports add, subtract, multiply, divide, power, and sqrt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The first operand (or sole operand for sqrt) | |
| b | No | The second operand (not needed for sqrt) | |
| operation | Yes | The arithmetic operation to perform |