Closed GlintonLiao closed 1 year ago
Hi,
I added three reactive math functions in the math folder, including:
mod(): get the remainder of two numbers a and b when dividing a by b.
mod()
a
b
gcd(): get the greatest common divisor of two numbers.
gcd()
lcm(): get the least common multiple of two numbers.
lcm()
Besides, I added math test modules, covering all functions inside /src/math/index.ts.
/src/math/index.ts
Hi,
I added three reactive math functions in the math folder, including:
mod()
: get the remainder of two numbersa
andb
when dividinga
byb
.gcd()
: get the greatest common divisor of two numbers.lcm()
: get the least common multiple of two numbers.Besides, I added math test modules, covering all functions inside
/src/math/index.ts
.