euc_lib-0.2.2 has been yanked.
euc_lib
Easy to use implementation of extended and normanl Euclidean algorithm
Want to contribute?:
My github:
Project:
Support:
Example usage:
Extended
Program
use euc_lib;
Output
NWD = 5, S = -1, T = 4
Simple
Program
use euc_lib;
Output
5
Vector as an argument
Program
use euc_lib;
Output
Ok(7)
LCM
Simple
This version implements Least common multiple calculating method using gcd (Euclidean algorithm)
Program
use euc_lib;
Output
42
Vector as argument
Program
use euc_lib;
Output
Ok(24)
i64 support
To use i64 versions of all functions just use euc_lib::I64 instead of euc_lib::I32
Example of I64 usage
Program
use euc_lib;
Output
NWD = 5, S = -1, T = 4