#include "compute.h" void ReadData (int * data, const int len) { static int t = 0; for (int n=0; n +D_PI) return sincos (x - D_PI, even); if (x < -D_PI) return sincos (x + D_PI, even); float result (0.0f), element(1.0f), divider(0.0f); if (even) { element *= x; divider += 1.0f; } constexpr float eps = 1.0e-8f; // maximální chyba výpočtu const float aa = - (x * x); for (;;) { result += element; if (mfabs (element) < eps) break; divider += 1.0f; float fact = divider; divider += 1.0f; fact *= divider; element *= aa / fact; } return result; }