{"category":"calc","endpoint":"https://setget.net/v1/tools/math-eval","examples":[{"input":{"expression":"(2 + 3) * 4 ** 2 / sqrt(16)"},"output":{"result":20,"text":"20","type":"integer"}},{"input":{"expression":"sqrt(x**2 + y**2)","variables":{"x":3,"y":4}},"output":{"result":5,"text":"5","type":"integer"},"title":"With variables"},{"input":{"expression":"2**100"},"output":{"result":"1267650600228229401496703205376","text":"1267650600228229401496703205376","type":"integer"},"title":"A very large whole number"},{"input":{"expression":"0.1 + 0.2"},"output":{"result":0.3,"text":"0.3","type":"number"},"title":"Decimals without noise"}],"input_schema":{"additionalProperties":false,"properties":{"expression":{"description":"The expression to work out.","examples":["(2 + 3) * 4 ** 2 / sqrt(16)"],"maxLength":1000,"type":"string"},"variables":{"description":"Optional named numbers to use in the expression, as an object.","examples":[{"x":3,"y":4}]}},"required":["expression"],"type":"object"},"keywords":["calculator","math expression","evaluate expression","scientific calculator","online calculator","square root","factorial","exponent calculator","log calculator"],"related":["percent","unit-convert","statistics","fraction"],"slug":"math-eval","summary":"Work out an arithmetic expression safely: brackets, powers, functions such as sqrt and log, and variables.","tier":"inline","title":"Calculator and expression evaluator","url":"https://setget.net/tools/math-eval"}
