Expand description
Math.
Modules§
Functions§
- abs_
diff - The absolute difference between two numbers.
- bezout_
coefficients - Find t and s, such that ta + sb = gcd(p, q).
- gcd
- Computes the greatest common divisor for numbers a and b. TODO: May return negative values.
- lcm
- Computes the least common multiple of a and b.
- solve_
crt - Solve the chinese remainder theorem for (n1, a1) and (n2, a2). We assume that:
- taxi_
cab_ 2d - The taxi cab distance between two 2D points.
- taxi_
cab_ 3d - The taxi cab distance between two 3D points.
- taxi_
cab_ 4d - The taxi cab distance between two 4D points.