Skip to content
Prev 393563 / 398506 Next

gmp::bigq vs. MASS::fractions

On Sat, 07 Jan 2023, Sigbert Klinke writes:
'gmp' allows you to create the fractions directly:

    gmp::as.bigq(n = 0:7, d = 7)
    ## Big Rational ('bigq') object of length 8:
    ## [1] 0   1/7 2/7 3/7 4/7 5/7 6/7 1
Message-ID: <87pmboko3z.fsf@enricoschumann.net>
In-Reply-To: <6c8a775d-b141-edc0-c222-fbeea1d5cb95@wiwi.hu-berlin.de> (Sigbert Klinke's message of "Sat, 7 Jan 2023 17:29:35 +0100")