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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user