math_8hpp_source.tex 1.0 KB

12345678910111213141516171819
  1. \hypertarget{math_8hpp_source}{}\doxysection{math.\+hpp}
  2. \label{math_8hpp_source}\index{src/math.hpp@{src/math.hpp}}
  3. \mbox{\hyperlink{math_8hpp}{Go to the documentation of this file.}}
  4. \begin{DoxyCode}{0}
  5. \DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef MATH\_HPP}}
  6. \DoxyCodeLine{2 \textcolor{preprocessor}{\#define MATH\_HPP}}
  7. \DoxyCodeLine{3 }
  8. \DoxyCodeLine{4 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespace_math}{Math}}\{}
  9. \DoxyCodeLine{5 \textcolor{keyword}{inline} \mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} \mbox{\hyperlink{namespace_math_a7e8411f9880b87ade916aee8531d0c11}{exp}}(\mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} x)\{}
  10. \DoxyCodeLine{6 x=1+x/1024;}
  11. \DoxyCodeLine{7 x *= x; x *= x; x *= x; x *= x;}
  12. \DoxyCodeLine{8 x *= x; x *= x; x *= x; x *= x;}
  13. \DoxyCodeLine{9 x *= x; x *= x;}
  14. \DoxyCodeLine{10 \textcolor{keywordflow}{return} x;}
  15. \DoxyCodeLine{11 \}}
  16. \DoxyCodeLine{12 \}}
  17. \DoxyCodeLine{13 \textcolor{preprocessor}{\#endif}}
  18. \end{DoxyCode}