Expr.run!

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

Lovingly shitposted by KrofDrakula. Source here.

Usage

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

https://expr.run/expression

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:

https://expr.run/6.378137e6*2*pi

This returns the JSON response:

{"result":40075016.68557849,"error":null}

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.