Expand description
§math
math common math operations
Functions§
- factors
- This will return a vector of factors if any exists. This will exlclude the obvious factors of one and the number itself. If no factors exist (minus the obvious one and the number itself) None will be returned.
- gcd
- This uses Euclid’s theorem to return the greatest common divisor between two numbers. If the numbers are equal, the greatest common divisor is the number. Zero cannot be one of the inputs, an error will be returned if a or b is equal to zero
- relatively_
prime - This will check if a and b are prime relative to each other. If two numbers are relatively prime, their GCD will be equal to one