mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update math/fibonacci_sum.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
This commit is contained in:
parent
2b9f0ca4eb
commit
a054b759b1
@ -4,7 +4,7 @@
|
||||
* @details An algorithm to calculate the sum of Fibonacci Sequence: \f$\mathrm{F}(n) + \mathrm{F}(n+1) + .. + \mathrm{F}(m)\f$ where \f$\mathrm{F}(i)\f$
|
||||
* denotes the i-th Fibonacci Number . Note that F(0) = 0 and F(1) = 1.
|
||||
* The value of the sum is calculated using matrix exponentiation.
|
||||
* @source https://stackoverflow.com/questions/4357223/finding-the-sum-of-fibonacci-numbers
|
||||
* Reference source: https://stackoverflow.com/questions/4357223/finding-the-sum-of-fibonacci-numbers
|
||||
* @author [Sarthak Sahu](https://github.com/SarthakSahu1009)
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user