mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Implemented lcm for fractions
This commit is contained in:
parent
ac008b7623
commit
ff2bb51855
@ -46,7 +46,9 @@ function factory (type, config, load, typed) {
|
||||
|
||||
'BigNumber, BigNumber': _lcmBigNumber,
|
||||
|
||||
// TODO: implement support for Fraction
|
||||
'Fraction, Fraction': function (x, y) {
|
||||
return x.mul(y).abs().div(x.gcd(y));
|
||||
},
|
||||
|
||||
'Matrix, Matrix': function (x, y) {
|
||||
// result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user