https://github.com/cran/pracma
Raw File
Tip revision: d5bfb0e3b7a3211ff2bbe2926e5ba31aa24e4df6 authored by HwB on 09 March 2012, 00:00:00 UTC
version 1.0.1
Tip revision: d5bfb0e
modular.R
##
##  g c d . R  tests
##

extGCD <- pracma::extGCD
GCD <- pracma::GCD
LCM <- pracma::LCM

identical(extGCD(46368, 75025), c(1, 28657, -17711))
identical(GCD(46368, 75025), 1)
identical(LCM(46368, 75025), 46368 * 75025)
back to top