-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
help wantedIndicates that a maintainer wants help on an issue or pull requestIndicates that a maintainer wants help on an issue or pull requestrationalsThe Rational type and values thereofThe Rational type and values thereof
Description
There are no functions for Rational
.
gcd(x::Rational, y::Rational) = gcd(x.num, y.num) // lcm(x.den, y.den)
lcm(x::Rational, y::Rational) = lcm(x.num, y.num) // gcd(x.den, y.den)
gcd(a::Rational, b::Rational...) = gcd(a, gcd(b...))
lcm(a::Rational, b::Rational...) = lcm(a, lcm(b...))
ravibitsgoa
Metadata
Metadata
Assignees
Labels
help wantedIndicates that a maintainer wants help on an issue or pull requestIndicates that a maintainer wants help on an issue or pull requestrationalsThe Rational type and values thereofThe Rational type and values thereof