Built-ins
Constants
Mathflow comes with pre-defined universal constants to ease your workflow.
pi
- This is the ratio of the circumference of a circle to its diametere
- The mathematical constant e. This is Euler's number, the base of natural logarithms.
Functions
Just like Mathematics, MathFlow has commonly used functions built in. A full list of those functions can be found in this file.
exp
- returns e (the base of natural logarithms) raised to a powerlog
- returns the base 10 logarithm of a numberln
- returns the natural logarithm of a numberdeg
- convert radians into degreesrad
- convert degrees into radianssin
- returns the sine of a number in degreescos
- returns the cosine of a number in degreestan
- returns the tangent of a number in degreesasin
- equivalent to arcsine of a numberacos
- equivalent to arcosine of a numberatan
- equivalent to arctangent of a numbersqrt
- returns the square root of a number
Examples:
These functions can take up a single number or expression.
js
log(100) // 2
sin(15 + 15) // 0.5
cos(acos(0.5)) // 0.5
sqrt(4) // 2