Errors with forcing now down from 3 to 1 after switching from fast & inaccurate trig functions to more accurate ones

This commit is contained in:
jpekkila
2019-08-06 19:29:40 +03:00
parent d7e26e8f21
commit 6b53eb31ef

View File

@@ -59,17 +59,18 @@ create_rotz(const AcReal radians)
} }
#if AC_DOUBLE_PRECISION == 0 #if AC_DOUBLE_PRECISION == 0
/*
// Fast but inaccurate
#define sin __sinf #define sin __sinf
#define cos __cosf #define cos __cosf
#define exp __expf #define exp __expf
*/
#define sin sinf
#define cos cosf
#define exp expf
#define rsqrt rsqrtf // hardware reciprocal sqrt #define rsqrt rsqrtf // hardware reciprocal sqrt
#endif // AC_DOUBLE_PRECISION == 0 #endif // AC_DOUBLE_PRECISION == 0
/*
typedef struct {
int i, j, k;
} int3;*/
/* /*
* ============================================================================= * =============================================================================
* Level 0 (Input Assembly Stage) * Level 0 (Input Assembly Stage)