Back to Home

🔢 Sympy Eval

Mathematical expression evaluation API

API Endpoint

POST
https://heron.tools/eval/api/

Request Parameters

Parameter Type Description Example
formula string Mathematical expression (required) sin(x) + cos(x)

Example Request

curl -X POST https://heron.tools/eval/api/ \ -H "Content-Type: application/json" \ -d '{"formula": "2**10 + sqrt(16)"}'

Example Expressions

Response

Success (200)

{ "result": "1028" }

Error (400/500)

{ "error": "error message" }