Arithmetic
The following patterns regard basic arithmetic and mathematical operations.
Some of the base arithmetic tricks accept a combination of types of fragment. These will have their signatures labelled with, for example, Addable or Roundable . These terms are shorthands for a combination of options:
Addable and Subtractable are either Numbers , Vectors , or Patterns .
Multiplicable , Divisible , and Roundable are only Numbers or Vectors .
Distortions here that take many arguments at once will apply their operation cumulatively. For example:
1, 2, 3 into Annexation Stratagem = 1 + 2 + 3 = 6
or
1, 2, 3 into Submission Stratagem = 1 / 2 / 3 = 0.1666...
Annexation Stratagem
Addable... | [Addable] -> Addable
Adds fragments together.
Desertion Stratagem
Subtractable... | [Subtractable] -> Subtractable
Subtracts multiple fragments from the first fragment.
Domination Stratagem
Multiplicable... | [Multiplicable] -> Multiplicable
Multiplies a bunch of fragments.
Submission Stratagem
Divisible... | [Divisible] -> Divisible
Divides fragments sequentially, starting from the first.
Distortion of Wholes
Number, Number -> Number
Returns the remainder of dividing the first number by the second number.
Distortion of Supremacy
Number, Number -> Number
Returns the first number raised to the power of the second.
Distortion of Inferiority
Number, Number -> Number
Given two numbers, returns the power that the first number must be raised by to equal the second.
Noble Stratagem
Number... | [Number] -> Number
Returns the highest of its input values.
Insignificance Stratagem
Number... | [Number] -> Number
Returns the lowest of its input values.
Distortion of Grandeur
Roundable -> Roundable
Returns the value of the input rounded up.
Distortion of Humility
Roundable -> Roundable
Returns the value of the input rounded down.
Distortion of Objectivity
Roundable -> Roundable
Returns the rounded value of the input.
Distortion of Decline
Number -> Number
Returns the square root of the input.
Inversion Distortion
Number -> Number
Vector -> Vector
Inverts the given number or vector.
Absolutist's Distortion
Number -> Number
If the given number is negative, returns its positive equivalent. Otherwise, returns the number as-is.
Primary Distortion of Geometry
Number -> Number
Returns the sine of the given number.
Secondary Distortion of Geometry
Number -> Number
Returns the cosine of the given number.
Tertiary Distortion of Geometry
Number -> Number
Returns the tangent of the given number.
Primary Inverse Distortion of Geometry
Number -> Number
Returns the arcsine of the given number.
Secondary Inverse Distortion of Geometry
Number -> Number
Returns the arccosine of the given number.
Tertiary Inverse Distortion of Geometry
Number -> Number
Returns the arctangent of the given number.
Cartesian Angle Distortion
Number, Number -> Number
Returns the angle measure between positive X axis and the ray from the origin to the point (y, x).