calculate
Compute precise results of mathematical expressions using Python math syntax and numpy. Analyze financial data with accurate calculations for improved decision-making in financial analysis.
Instructions
Calculate the result of a mathematical expression. Support python math syntax and numpy. > calculate("2 * 3 + 4") {'result': 10} > calculate("sin(pi/2)") {'result': 1.0} > calculate("sqrt(16)") {'result': 4.0} > calculate("np.mean([1, 2, 3])") {'result': 2.0}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expression | Yes |