import * as denum from "https://raw.githubusercontent.com/JOTSR/Denum/master/mod.ts";| Complex | ⚠️ Complex is an unstable API, expect breaking changes ⚠️ |
| Exponential | |
| Frac |
| abs | Returns the absolute value of a number. |
| clamp | Clamp a value between min and max |
| dichotomy | It takes an expression, an expected result, a variable name, and some options, and returns the value of the variable that makes the expression equal to the expected result Make sure to prepend variable and constants names with "$" |
| factors | It takes a number and returns a map of the prime factors of that number and the number of times they occur |
| gcd | It takes two or more numbers and returns the greatest common divisor of all of them |
| geometricMean | Calculate the geometric mean of a 1D set of values and coefficients |
| getPrimes | It returns an array of prime numbers of the specified quantity Warning: bounds are excluded |
| harmonicMean | Calculate the harmonic mean of a 1D set of values and coefficients |
| irange | Set a iterable range from a generator function, idea for big range fast and without memory overflow. All parameters must be of the same type |
| isPrime | Test if a given number is prime or not Warning: O(n) algorithm |
| lcd | The least common denominator of a set of numbers is the smallest number that is a multiple of all the numbers in the set |
| map | Re-map a value from initial bounds to another bounds |
| mean | Calculate the arithmetic mean of a 1D set of values and coefficients |
| median | Get the median of an array of values |
| quadraticMean | Calculate the quadratic mean of a 1D set of values and coefficients |
| quantile | Get the given quantile associate to an array of values |
| random | Generate a bounded random number |
| randomArray | Produce an array filled with random values |
| randomInt | Generate a bounded random integer |
| randomIntArray | Produce an array filled with random integers |
| range | Return an array based on input range. All parameters must be of the same type |
| round | Round a value following parameters |
| sign | If the number is less than zero, return -1, otherwise return 1 |