1.0.1 • Published 2 years ago

@sleepyboi2852/extramath v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Extra Math

Extra Math is a module that adds several new convenient math functions that would be useful for people who don't want to/don't have the time to memorize how to calculate a specific mathematical expression using built-in Javascript Functions

Examples

const { fib,pi,ϕ,phi } = require("@sleepyboi2852/extramath")

console.log(pi(100)) // Calculate pi up to the 100th Digit
console.log(fib(4)) // Calculate the 4th number of the Fibonacci Sequence
console.log(ϕ) // Calculate the Golden Ratio using Square Roots
console.log(phi) // Calculate the Golden Ratio using Square Roots, but it's easier to type

console.log((fib(1400)/fib(1399)).toFixed(100)) // Calculate the Golden Ratio (up to 100 digits) using the Fibonacci Sequence
1.0.1

2 years ago

1.0.0

2 years ago