Overview
Calculator tool for performing mathematical calculations including basic arithmetic, scientific functions, and expression evaluation.Installation
Quick Start
Usage with Agent
Available Methods
calculate(expression)
Evaluate a mathematical expression.Scientific Functions
Function-Based Usage
CLI Usage
Supported Operations
| Operation | Symbol | Example |
|---|---|---|
| Addition | + | 5 + 3 |
| Subtraction | - | 10 - 4 |
| Multiplication | * | 6 * 7 |
| Division | / | 20 / 4 |
| Power | ** | 2 ** 8 |
| Modulo | % | 17 % 5 |
| Parentheses | () | (2 + 3) * 4 |
Supported Functions
sin,cos,tan- Trigonometricasin,acos,atan- Inverse trigonometricsqrt- Square rootlog,log10- Logarithmsexp- Exponentialabs- Absolute valueround,floor,ceil- Rounding
Error Handling
Common Errors
| Error | Cause | Solution |
|---|---|---|
Division by zero | Dividing by 0 | Check divisor |
Invalid syntax | Malformed expression | Check expression format |
Unknown function | Unsupported function | Use supported functions |

