Skip to content

Commit

Permalink
considered adding resource of the formula
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuredra committed Sep 19, 2023
1 parent cc93a8b commit 998e02e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Maths/Fibonacci.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ const FibonacciMatrixExpo = (num) => {
return F[0][0] * (isNeg ? (-ONE) ** (num + ONE) : ONE)
}

/*
Resource : https://math.hmc.edu/funfacts/fibonacci-number-formula/
*/

const sqrt5 = Math.sqrt(5)
const phi = (1 + sqrt5) / 2
const psi = (1 - sqrt5) / 2
Expand Down

0 comments on commit 998e02e

Please sign in to comment.