Further Maths
These glyphs further expand the practitioner’s tools for mathematical evaluation. Most of these glyphs concern themselves with trigonometry, useful for computing angles to create precise effects in real space.
Sin
number → number
Takes a number, interprets it as an angle in degrees, and returns its corresponding sine value.
Cos
number → number
Takes a number, interprets it as an angle in degrees, and returns its corresponding cosine value.
Tan
number → number
Takes a number, interprets it as an angle in degrees, and returns its corresponding tangent value.
Asin
number → number
Pops a number, takes its arcsine, and returns the result in degrees.
Acos
number → number
Pops a number, takes its arccosine, and returns the result in degrees.
Atan
number → number
Pops a number, takes its arctangent, and returns the result in degrees.
Atan2
num, num → num
A variant of arctangent that is sensitive to quadrant. Takes the head to be x, and the number below the head to be y, and evaluates for arctangent on the point (x, y).
eg. y, x → the arctan of line corresponding to the point (x, y) on the unit circle
Logab
num, num → num
Takes the logarithm of the number below the head with the number at the head as the base.
eg. a, b → log of a with base b
To Radian
number → number
Takes a number, interprets it as a value in degrees, and returns the corresponding value in radians.
To Degree
number → number
Takes a number, interprets it as a value in radians, and returns the corresponding value in degrees.