mirror of https://github.com/zeldaret/mm.git
M_PI for cosf and sinf files
This commit is contained in:
parent
b4527cc5c7
commit
67a30021b3
|
@ -14,7 +14,7 @@ static const du P[] = {
|
||||||
{ 0.000002605780637968037 },
|
{ 0.000002605780637968037 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const du rpi = { 1 / 3.14159265358979323846 }; // 1/F_PI, "reciprocal of pi"
|
static const du rpi = { 1 / 3.14159265358979323846 }; // 1/M_PI, "reciprocal of pi"
|
||||||
|
|
||||||
// pihi + pilo is the closest double to pi, this representation allows more precise calculations since pi itself is not
|
// pihi + pilo is the closest double to pi, this representation allows more precise calculations since pi itself is not
|
||||||
// an exact float
|
// an exact float
|
||||||
|
|
|
@ -14,7 +14,7 @@ static const du P[] = {
|
||||||
{ 0.000002605780637968037 },
|
{ 0.000002605780637968037 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const du rpi = { 1 / 3.14159265358979323846 }; // 1/F_PI, "reciprocal of pi"
|
static const du rpi = { 1 / 3.14159265358979323846 }; // 1/M_PI, "reciprocal of pi"
|
||||||
|
|
||||||
// pihi + pilo is the closest double to pi, this representation allows more precise calculations since pi itself is not
|
// pihi + pilo is the closest double to pi, this representation allows more precise calculations since pi itself is not
|
||||||
// an exact float
|
// an exact float
|
||||||
|
|
Loading…
Reference in New Issue