Awkl
Loading...
Searching...
No Matches
math.awk File Reference

Namespaces

namespace  math
 

Functions

number math::eq (any x, any y)
 Equality operator ==. Mathematical equality relation for numeric values \(=\).
 
number math::ne (any x, any y)
 Inequality operator !=. Mathematical inequality relation for numeric values \(\ne\).
 
number math::lt (any x, any y)
 Less than operator <. Mathematical less-than relation for numeric values \(\lt\).
 
number math::le (any x, any y)
 Less than or equal operator <=. Mathematical less-than or equal relation for numeric values \(\leq\).
 
number math::gt (any x, any y)
 Greater than operator >. Mathematical greater-than relation for numeric values \(\gt\).
 
number math::ge (any x, any y)
 Greater than or equal operator >=. Mathematical greater-than or equal relation for numeric values \(\geq\).
 
number math::rematch (any x, any y)
 Regular expression matching operator ~
 
number math::renomatch (any x, any y)
 Negated regular expression matching operator !~
 
number math::is (any x, any y)
 Identity operator: Equality in value and type.
 
number math::ni (any x, any y)
 Non-identity operator: Inequality in value or type.
 
bool math::eqBool (any x, any y)
 Equality operator == that returns a number|bool
 
bool math::neBool (any x, any y)
 Equality operator != that returns a number|bool
 
bool math::ltBool (any x, any y)
 Equality operator < that returns a number|bool
 
bool math::leBool (any x, any y)
 Equality operator <= that returns a number|bool
 
bool math::gtBool (any x, any y)
 Equality operator > that returns a number|bool
 
bool math::geBool (any x, any y)
 Equality operator >= that returns a number|bool
 
bool math::rematchBool (any x, any y)
 Equality operator ~ that returns a number|bool
 
bool math::renomatchBool (any x, any y)
 Equality operator !~ that returns a number|bool
 
auto math::eqCollate (x, y)
 Check if strings collate equally.
 
number math::cmp (any x, any y)
 Comparator or "spaceship operator".
 
number math::add (numeric x, numeric y)
 Addition operator +. Arithmetic addition for numeric values \(+\).
 
number math::subt (numeric x, numeric y)
 Subtraction operator -. Arithmetic subtraction for numeric values \(-\).
 
number math::mul (numeric x, numeric y)
 Multiplication operator *. Arithmetic multiplication for numeric values \(\times\).
 
number math::div (numeric x, numeric y)
 Division operator /. Arithmetic division for numeric values \(\div\).
 
number math::rdiv (numeric x, numeric y)
 Right division operator. Arithmetic division for numeric values \(\div\) with operands in reversed order.
 
number math::mod (numeric x, numeric y)
 Modulo or remainder operator %. Binary operation for numeric values \(mod\).
 
number math::pow (numeric x, numeric y)
 Exponentiation operator ^. Arithmetic exponentiation for numeric values \(x^y\).
 
number math::floorDiv (numeric x, numeric y)
 Floor division.
 
number math::ln (numeric x)
 Natural logarithm (base \(e\)) function \(\ln\) or \(\log_e\).
 
number math::logb (numeric x, numeric b)
 Logarithm function \(\log_b\).
 
number math::log10 (numeric x)
 Common logarithm (base 10) function \(\text{lg}\) or \(\log_{10}\).
 
number math::log2 (numeric x)
 Binary logarithm (base 2) function \(\text{lb}\) or \(\log_2\).
 
number math::cbrt (numeric x)
 Cube root function \(\sqrt[3]{\phantom{x}}\).
 
number math::root (numeric x, numeric n)
 Nth root function \(\sqrt[n]{\phantom{x}}\).
 
number math::abs (numeric x)
 Absolute value function \(|\phantom{x}|\).
 
number math::abs2 (numeric x)
 Absolute value squared function \(|\phantom{x}|^2\).
 
number math::floor (numeric x)
 Floor function \(\lfloor \phantom{x} \rfloor\).
 
number math::ceil (numeric x)
 Ceil function \(\lceil \phantom{x} \rceil\).
 
number math::frac (numeric x)
 Fractional or decimal part function \(\{~~\}\).
 
unassigned math::modf (array A, numeric x)
 Modulus fraction function.
 
number math::round (numeric x)
 Round function.
 
number math::roundUp (numeric x, numeric y)
 Round to next multiple of.
 
number math::roundDown (numeric x, numeric y)
 Round to previous multiple of.
 
number math::max (any x, any y)
 Maximum function \(\max\).
 
number math::min (any x, any y)
 Minimum function \(\min\).
 
unassigned math::minmax (array A, any x, any y)
 Min-max function \(\text{minmax}\).
 
number math::muladd (numeric x, numeric y, numeric z)
 Multiply then add operation (MAD)
 
number math::isBetween (numeric a, numeric x, numeric b, bool eq)
 Check if x is bounded between a and b
 
number math::approx (numeric v1, numeric v2, numeric rt=0.01, numeric at=0.00)
 Approximately function \(\approx\).
 
number math::sgn (numeric x)
 Sign function (or signum) \(sgn\).
 
number math::signbit (numeric x)
 Signbit function.
 
number math::flipsign (numeric x, numeric y)
 Flip the sign of x if y is negative.
 
number math::copysign (numeric x, numeric y)
 Copy the sign of y into x
 
number math::triangular (numeric x)
 Triangular function. \(x?\).
 
number math::factorial (numeric x)
 Factorial function. \(x!\).
 
number math::sumSeq (numeric x, numeric y)
 Sum of sequence function. \(\sum\).
 
number math::prodSeq (numeric x, numeric y)
 Product of sequence function. \(\prod\).
 
number math::hypot (numeric x, numeric y, numeric z)
 Hypotenuse function (or euclidean distance function, or polar length, or pythagorean addition) \(\oplus\).
 
number math::gcd (numeric x, numeric y)
 Greatest common denominator function \(\gcd\).
 
number math::lcm (numeric x, numeric y)
 Least common multiple function \(\text{lcm}\).
 
number math::sine (numeric x)
 Sine function \(\sin\).
 
number math::cosine (numeric x)
 Cosine function \(\cos\).
 
number math::tan (numeric x)
 Tangent function \(\tan\).
 
number math::cot (numeric x)
 Cotangent function \(\cot\).
 
number math::sec (numeric x)
 Secant function \(\sec\).
 
number math::csc (numeric x)
 Cosecant function \(\csc\).
 
number math::asin (numeric x)
 Arc sine function. Inverse of the sine function. \(\arcsin = \sin^{-1}\).
 
number math::acos (numeric x)
 Arc cosine function. Inverse of the cosine function. \(\arccos = \cos^{-1}\).
 
number math::atan (numeric x)
 Arc tangent function. Inverse of the tangent function. \(\arctan = \tan^{-1}\).
 
number math::acot (numeric x)
 Arc cotangent function. Inverse of the cotangent function. \(\text{arccot} = \cot^{-1}\).
 
number math::asec (numeric x)
 Arc secant function. Inverse of the secant function. \(\text{arcsec} = \sec^{-1}\).
 
number math::acsc (numeric x)
 Arc cosecant function. Inverse of the cosecant function. \(\text{arccsc} = \csc^{-1}\).
 
number math::sinh (numeric x)
 Hyperbolic sine function \(\sinh\).
 
number math::cosh (numeric x)
 Hyperbolic cosine function \(\cosh\).
 
number math::tanh (numeric x)
 Hyperbolic tangent function \(\tanh\).
 
number math::coth (numeric x)
 Hyperbolic cotangent function \(\coth\).
 
number math::sech (numeric x)
 Hyperbolic secant function \(\text{sech}\).
 
number math::csch (numeric x)
 Hyperbolic cosecant function \(\text{csch}\).
 
number math::asinh (numeric x)
 Arc hyperbolic sine function. Inverse of the hyperbolic sine function. \(\text{arcsinh} = \sinh^{-1}\).
 
number math::acosh (numeric x)
 Arc hyperbolic cosine function. Inverse of the hyperbolic cosine function. \(\text{arccosh} = \cosh^{-1}\).
 
number math::atanh (numeric x)
 Arc hyperbolic tangent function. Inverse of the hyperbolic tangent function. \(\text{arctanh} = \tanh^{-1}\).
 
number math::acoth (numeric x)
 Arc hyperbolic cotangent function. Inverse of the hyperbolic cotangent function. \(\text{arccoth} = \coth^{-1}\).
 
number math::asech (numeric x)
 Arc hyperbolic secant function. Inverse of the hyperbolic sine function. \(\text{arcsech} = \text{sech}^{-1}\).
 
number math::acsch (numeric x)
 Arc hyperbolic cosecant function. Inverse of the hyperbolic sine function. \(\text{arccsch} = \text{csch}^{-1}\).