Calculator-MCP
by to404hanga
A high-precision scientific calculator implemented in Go. It supports complex mathematical operations with customizable precision.
View on GitHub
Last updated: N/A
Calculator-MCP
High-Precision Scientific Calculator
A high-precision scientific calculator implemented in Go, supporting complex mathematical operations with customizable precision.
Features
-
Basic Operations
- Addition(+), Subtraction(-), Multiplication(*), Division(/)
- Nested parentheses support: (1 + 2) * 3
- Arbitrary precision decimal calculations
-
Mathematical Constants
- PI (π): Mathematical constant pi
- E (e): Base of natural logarithm
-
Mathematical Functions
- sqrt(x): Square root calculation
- pow(x, y): Exponentiation, e.g., 2 ^ 3
-
Trigonometric Functions
- sin(x): Sine function
- cos(x): Cosine function
- tan(x): Tangent function
- asin(x): Arcsine function (input range [-1,1])
- acos(x): Arccosine function (input range [-1,1])
- atan(x): Arctangent function
-
Precision Control
- Customizable calculation precision
- Default: 10 decimal places
- Maximum: 75 decimal places
Usage Examples:
- Basic operation: 1 + 2 * 3
- Constant operation: 2 * PI
- Function calculation: sqrt(16)
- Compound operation: (1 + sqrt(16)) * 2
- Trigonometric function: sin(PI/2)
- High precision: E ^ 2
Important Notes:
- Division by zero is not allowed
- Square root of negative numbers is not allowed
- Input values for inverse trigonometric functions must be within valid range`