\hypertarget{stats_8cpp_source}{}\doxysection{stats.\+cpp}
\label{stats_8cpp_source}\index{tests/stats.cpp@{tests/stats.cpp}}
\mbox{\hyperlink{stats_8cpp}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00001}00001 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{stats_8h}{kblib/stats.h}}"{}}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00003}00003 \textcolor{preprocessor}{\#include "{}catch.hpp"{}}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00004}00004 }
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00005}00005 \textcolor{preprocessor}{\#include <array>}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00006}00006 \textcolor{preprocessor}{\#include <cmath>}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00007}00007 \textcolor{preprocessor}{\#include <iostream>}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00008}00008 }
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00009}00009 [[gnu::unused]] \textcolor{keyword}{static} \textcolor{keywordtype}{long} \textcolor{keywordtype}{double} phi = 1.6180339887498948482L;}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00010}00010 \textcolor{comment}{// not using sqrtl because of https://gcc.gnu.org/bugzilla/show\_bug.cgi?id=79700}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00011}00011 [[gnu::unused]] \textcolor{keyword}{static} \textcolor{keywordtype}{long} \textcolor{keywordtype}{double} r5 = std::sqrt(5);}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00012}00012 }
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00013}\mbox{\hyperlink{stats_8cpp_a718da9a60ebf9635c8672982a7685c08}{00013}} \mbox{\hyperlink{stats_8cpp_a718da9a60ebf9635c8672982a7685c08}{TEST\_CASE}}(\textcolor{stringliteral}{"{}fibonacci"{}}) \{}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00014}00014    std::array<std::uint\_least64\_t, 41> fibs\{}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00015}00015        0,       1,        1,        2,        3,        5,        8,}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00016}00016        13,      21,       34,       55,       89,       144,      233,}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00017}00017        377,     610,      987,      1597,     2584,     4181,     6765,}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00018}00018        10946,   17711,    28657,    46368,    75025,    121393,   196418,}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00019}00019        317811,  514229,   832040,   1346269,  2178309,  3524578,  5702887,}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00020}00020        9227465, 14930352, 24157817, 39088169, 63245986, 102334155\};}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00021}00021    \textcolor{keywordflow}{for} (\textcolor{keywordtype}{int} i\{\}; i != fibs.size(); ++i) \{}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00022}00022       REQUIRE(fibs[\mbox{\hyperlink{namespacekblib_af9e250fffa2922e623baa08aa8994f54}{kblib::to\_unsigned}}(i)] == \mbox{\hyperlink{namespacekblib_a23d97429c2ea683b83b8223699b30c68}{kblib::fibonacci}}(i));}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00023}00023    \}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00024}00024    \textcolor{comment}{/*for (int i\{fibs.size()\}; i < 93; ++i) \{}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00025}00025 \textcolor{comment}{      std::cout<<(kblib::fibonacci(i) -\/ std::llroundl(std::powl(phi,}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00026}00026 \textcolor{comment}{   i)/r5))<<'\(\backslash\)n';}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00027}00027 \textcolor{comment}{   \}//*/}}
\DoxyCodeLine{\Hypertarget{stats_8cpp_source_l00028}00028 \}}

\end{DoxyCode}
