For when you cannot math but you can make a web request!

Lovingly shitposted by KrofDrakula. Source here.


To calculate a math expression, simply use the following URL to receive a JSON response:


Where expression is a math expression that supports the following:

For example, to compute the Earth's circumference based on mean radius across equator, in meters:


This returns the JSON response:


If the result is not computable, result will be null. If there is a parsing error, the error property will be populated with the error message.