This is a preliminary list of mathematical functions that will be added in [`math.biplan`](gioblu/BIPLAN/src/utils/libraries/math.biplan). Feel free to suggest additions. - [x] `abs` compute absolute value of an integer - [x] `digit` extracts a single digit from an integer value - [x] `numeric` checks if an ASCII character is numeric (0..9) - [x] `sign` extracts sign from integer, returns 1 if positive -1 if negative - [x] `fib` computes a number of the fibonacci series - [x] `sqrt` integer square root (linear search, ascending) using addition - [x] `pow` computes integer power of a base raised to an exponent - [x] `prime` checks if the given integer is a prime number or not - [ ] `gcd` computes greatest common divisor using Euclidean algorithm - [ ] `lcm` computes least common multiple using `gcd` - [ ] `digit_sum` computes the sum of all digits in an integer - [ ] `log2` computes integer logarithm base 2 (floor of log2) - [ ] `log10` computes integer logarithm base 10 (floor of log10)
This is a preliminary list of mathematical functions that will be added in
math.biplan.Feel free to suggest additions.
abscompute absolute value of an integerdigitextracts a single digit from an integer valuenumericchecks if an ASCII character is numeric (0..9)signextracts sign from integer, returns 1 if positive -1 if negativefibcomputes a number of the fibonacci seriessqrtinteger square root (linear search, ascending) using additionpowcomputes integer power of a base raised to an exponentprimechecks if the given integer is a prime number or notgcdcomputes greatest common divisor using Euclidean algorithmlcmcomputes least common multiple usinggcddigit_sumcomputes the sum of all digits in an integerlog2computes integer logarithm base 2 (floor of log2)log10computes integer logarithm base 10 (floor of log10)