-
Notifications
You must be signed in to change notification settings - Fork 0
Functions Math
Jason Barr edited this page Sep 22, 2021
·
2 revisions
A functional, curried interface to the JavaScript Math object, plus some additional math-related functions.
absacosacoshasinasinhatanatan2atanh-
calcAngleDegrees- use a point's coordinates to calculate the angle from origin cbrtceilclz32coscosh-
dec- decrement by 1 -
e- returns E expexpm1floorfroundhypotimul-
inc- increment by 1 ln2ln10loglog1plog2log10log10e-
max- works on a series of numbers, or on one or more arrays of numbers -
min- works on a series of numbers, or on one or more arrays of numbers -
pi- returns pi pow-
randInt- returns a random integer betweenstartandend(both inclusive) randomroundsignsinsqrtsqrt1_2sqrt2tantanhtrunc