MethodicalAcceleratorDesign / MAD-NG

MAD Next-Generation official repository
GNU General Public License v3.0
32 stars 11 forks source link

PR with discovered analytical formula for Atan only and tests for TPSA functions #449

Closed 17IMMANUEL17 closed 1 month ago

17IMMANUEL17 commented 1 month ago

The C part of the source code has been changed only in mad_tpsa_fun.c adding a macro ("OLD_SERIES") and creating a new branch of code for the atan where I use my formula. I also had to add some auxiliary functions in mad_num.c for the double factorial and the hypretriangular numbers (specifically at line 178 num_t mad_num_dfact(int n) and line 192 num_t mad_num_HypTri(int d, int n)).