mathematical_functions
Calculate trigonometric, logarithmic, exponential, and other mathematical functions with adjustable precision and angle units.
Instructions
Brief description: Mathematical function calculation tool, supporting trigonometric, logarithmic, exponential functions, etc.
Examples:
mathematical_functions(function='sin', value=1.57, angle_unit='radians')
mathematical_functions(function='log', value=100, base=10)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | Mathematical function type. Supports: 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'sinh', 'cosh', 'tanh', 'log', 'log10', 'ln', 'exp', 'sqrt', 'cbrt', 'abs', 'ceil', 'floor', 'round', 'factorial', 'gamma' | |
| value | Yes | Input value for the function | |
| base | No | Base for logarithm. Only for 'log' function, defaults to 10 | |
| precision | No | Number of decimal places for the result. Range 0-15 | |
| angle_unit | No | Angle unit. Used for trigonometric functions, supports 'radians', 'degrees' | radians |