scientific_calculator
Evaluate mathematical expressions with support for scientific functions, logarithms, trigonometry, complex numbers, and constants using this calculator tool.
Instructions
Evaluate mathematical expressions using a scientific calculator.
Supports:
Basic arithmetic: +, -, *, /, //, %, **
Scientific functions: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh
Logarithmic functions: log, log10, log2, ln (natural log)
Exponential functions: exp, sqrt, cbrt
Constants: pi, e, tau
Complex numbers: 1+2j, complex operations
Trigonometric functions work with radians by default
Use degrees(x) to convert radians to degrees, radians(x) to convert degrees to radians
Examples:
"sin(pi/2)" -> 1.0
"log10(100)" -> 2.0
"sqrt(16)" -> 4.0
"2**3" -> 8
"exp(1)" -> 2.718281828459045
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expression | Yes |