Learn R Programming

gmp (version 0.4-10)

gcd.bigz: Great common divisor, Least common multiple

Description

Great common divisor and least common multiple.

Usage

gcd.bigz(a, b)
lcm.bigz(a, b)

Arguments

a,b
Either integer, numeric or string value (String value: ither starting with 0x for hexadecimal, 0b for binary or without prefix for decimal values.) Or an element of class bigz.

Value

  • An element of class bigz

References

Gnu MP Library see http://swox.com/gmp

See Also

gcdex

Examples

Run this code
gcd.bigz(210,342)
lcm.bigz(210,342)

Run the code above in your browser using DataLab