Closed NervousNullPtr closed 2 years ago
If n is less than or equal to 75 (the precision limit of the double data type), we use the formula (½(1 + √5))ⁿ / √5 to compute the nth number.
n
(½(1 + √5))ⁿ / √5
Note: As long double only needs to be at least as precise as the regular double, I set the limit to the particular number 75.
long double
If
n
is less than or equal to 75 (the precision limit of the double data type), we use the formula(½(1 + √5))ⁿ / √5
to compute then
th number.Note: As
long double
only needs to be at least as precise as the regular double, I set the limit to the particular number 75.