https://github.com/cran/pracma
Raw File
Tip revision: 71455748623ef69836470c75c5f9384f6e872d45 authored by HwB on 28 June 2011, 00:00:00 UTC
version 0.6-3
Tip revision: 7145574
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