Releases: git-ced/calculate
Releases · git-ced/calculate
1.2.0 (May 10, 2020)
What's new
- Converted functions to pure functions, it doesn't mutate the input arrays.
- Removed sorting algorithms as it doesn't match the library's purpose. Instead created a util function to handle sorting internally.
Math
factorial
- Gets the factorial of a given number.
1.1.0 (May 6, 2020)
What's new?
Math
-
square()
- Gets the square of a given number. -
cube()
- Gets the cube of a given number. -
power()
- Gets the power of given numbers.
1.0.0 (May 2, 2020)
What's new?
Basic Arithmetic Functions
sum()
- Gets the sum of given numbers.difference()
- Gets the difference of given numbers.product()
- Gets the product of given numbers.quotient()
- Gets the quotient of given numbers.remainder()
- Gets the remainder of given numbers.
Basic Statistical Functions
mean()
- Gets the mean of given numbers.median()
- Gets the median of given numbers.mode()
- Gets the mode of given numbers.range()
- Gets the range of given numbers.
Sorting
sort()
- Sorts numbers or strings in ascending order.