log + drawLine
This commit is contained in:
parent
e747c0b060
commit
9e2e5ce581
6 changed files with 70 additions and 3 deletions
|
|
@ -72,6 +72,12 @@ const fraction = (n) => {
|
|||
return Fraction(n);
|
||||
};
|
||||
|
||||
export const gcd = (...fractions) => {
|
||||
return fractions.reduce((gcd, fraction) => gcd.gcd(fraction), fraction(1));
|
||||
};
|
||||
|
||||
fraction._original = Fraction;
|
||||
|
||||
export default fraction;
|
||||
|
||||
// "If you concern performance, cache Fraction.js objects and pass arrays/objects.“
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue