{"slug":"agents-204-168-199-108-sslip-io-v1-util-calc-dec7f2","title":"Evaluate a math expression and get the exact number back, so the agent does not ","host":"agents.204-168-199-108.sslip.io","method":"GET","resource":"https://agents.204-168-199-108.sslip.io/v1/util/calc","category":"code","description":"Evaluate a math expression and get the exact number back, so the agent does not do arithmetic in its head. Supports + - * / % ^ (or **), parentheses, implicit multiplication (2pi), factorial (5!), constants pi, e, tau, phi, and functions sqrt, cbrt, abs, exp, ln, log (base 10), log2, sin/cos/tan (ra","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":2,"answered_7d":2,"latency_ms_median":973,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["aws:base","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"expression":"principal*(1+rate/12)^(12*years)","precision":"2","vars":"principal=10000,rate=0.05,years=10"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"expression":{"description":"Math expression, e.g. (1250*0.075)+sqrt(144)/3","type":"string"},"precision":{"description":"Decimal places to round to, 0–15 (default 12)","type":"string"},"vars":{"description":"Optional variables, e.g. x=2,rate=0.05","type":"string"}},"required":["expression"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":973,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":974,"error":null}],"description_full":"Evaluate a math expression and get the exact number back, so the agent does not do arithmetic in its head. Supports + - * / % ^ (or **), parentheses, implicit multiplication (2pi), factorial (5!), constants pi, e, tau, phi, and functions sqrt, cbrt, abs, exp, ln, log (base 10), log2, sin/cos/tan (radians) and inverses, floor, ceil, round, min, max, pow, hypot. Optional named variables. Safe parser (no code execution); errors such as division by zero return 400 (not charged).","last_updated":"2026-11-25T17:00:11.033Z","schemes":["exact"]}