# Math API

Adalo natively provides a set of powerful arithmetic functions, like SQRT, LOG, and ABS, and we strongly recommend to use those whenever it suffices your needs. But in case your app requires more complex functions, Abracadalo provides you access to the magic of maths ✨.

# Calc

A very smart and powerful interpreter for mathmatical expressions. Pretty much every mathmatical function and concept is supported: trigonometry, complex numbers, matrices, unit conversions, and many more. Just give it a try!

For a full reference, click here (opens new window).

Example

"round(8.5^2 * 1/3 - sin(45deg) + log2(5), 3)"25.698

"abs(sqrt(x/4) + tan(7y))", x: 1.2, y: 40.15414534276960692

"det([-1, 2; 3, 1])"7

"12.7 cm to inch""5 inch"

API Base URL

https://api.abracadalo.com/math/calc
Copy

Parameters

Name Type Description Required
exp String Mathmatical expression. Yes
Variables... Number For each variable in your expression, create a parameter with an according name. If used in exp

Outputs

Name Type Description
result Number Computed result.

# Derivate

Derivate a function.

Example

"6x^2 + 5x - 4""12 * x + 5"

API Base URL

https://api.abracadalo.com/math/derivate
Copy

Parameters

Name Type Description Required
func String Mathmatical expression/function. Yes
symbol String Variable in func to be derived for. (Default: "x") No

Outputs

Name Type Description
result Number Derived function.
Last Updated: 6/18/2022, 9:45:07 AM