Generative Fast Fourier Transforms (GFFT)
0.3
|
Common series to compile-time calculation of sine and cosine functions. More...
#include <pseudometafunc.h>
Static Public Member Functions | |
static long double | value () |
M | is the starting counter of members in the series (2 for Sin function and 1 for Cos function) |
N | is the number of last member in the series |
A | numerator |
B | denominator |
Using theory of Taylor series sine and cosine functions can be defined as infinite series, which are valid for all real numbers x:
Both series contain common series S :
which can be parametrized by the starting denominator coefficient M and parameter N as the stopping criterium M = N. This template class implements the common series S for the argument .