|
@ -154,9 +154,21 @@ namespace gp{ |
|
|
|
|
|
|
|
|
// TODO: replace with an actual implementation
|
|
|
// TODO: replace with an actual implementation
|
|
|
double cos(double v) { |
|
|
double cos(double v) { |
|
|
return sin(v+pi<float>/2); |
|
|
|
|
|
|
|
|
return sin(v+pi<double>/2); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: replace with an actual implementation
|
|
|
|
|
|
float tan(float v) { |
|
|
|
|
|
return sin(v)/cos(v); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: replace with an actual implementation
|
|
|
|
|
|
double tan(double v) { |
|
|
|
|
|
return sin(v)/cos(v); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<size_t cycles = 5> |
|
|
template<size_t cycles = 5> |
|
|
float isqrt(float v) { |
|
|
float isqrt(float v) { |
|
|
int32_t i; |
|
|
int32_t i; |
|
|