From 2b9f0ca4eb3b070876c834c85d75df50329cb999 Mon Sep 17 00:00:00 2001 From: Sarthak Sahu <53469278+SarthakSahu1009@users.noreply.github.com> Date: Thu, 22 Oct 2020 02:02:26 +0530 Subject: [PATCH] Update math/fibonacci_sum.cpp Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com> --- math/fibonacci_sum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/fibonacci_sum.cpp b/math/fibonacci_sum.cpp index e8485b20d..daa4906b9 100644 --- a/math/fibonacci_sum.cpp +++ b/math/fibonacci_sum.cpp @@ -1,6 +1,6 @@ /** * @file - * @brief An algorithm to calculate the sum of Fibonacci Sequence: \f$\mathrm{F}(n) + \mathrm{F}(n+1) + .. + \mathrm{F}(m)\f$ + * @brief An algorithm to calculate the sum of [Fibonacci Sequence](https://en.wikipedia.org/wiki/Fibonacci_number): \f$\mathrm{F}(n) + \mathrm{F}(n+1) + .. + \mathrm{F}(m)\f$ * @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.