BigInteger Module
Calculates the greatest common divisor and least common multiple of big integers and generates a Farey sequence.
Functions and values
| Function or value |
Description
|
Full Usage:
BigInteger.farey n asc
Parameters:
BigInteger
asc : bool
Returns: (BigInteger * BigInteger) seq
|
Calculate an ordered farey sequence
|
Full Usage:
BigInteger.fromInt x
Parameters:
int
Returns: bigint
|
Create a bigint from an int
|
|
Calculate the greatest common divisor of two bigints Example: gcd 2I 4I returns 2I
|
|
Calculate the greatest common divisor of a sequence of bigints Example: gcdSeq [2I; 4I; 6I] returns 2I
|
|
Calculate the least common multiple of two bigints Example: lcm 2I 4I returns 4I
|
|
Calculate the least common multiple of a sequence of bigints Example: lcmSeq [2I; 4I; 6I] returns 12I
|
Full Usage:
BigInteger.toInt x
Parameters:
bigint
Returns: int
|
Create an int from a bigint
|
GenPRES