We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cec4b8 commit d66a2c3Copy full SHA for d66a2c3
1 file changed
Modules/mathmodule.c
@@ -306,13 +306,13 @@ m_cospi(double x)
306
return cos(x);
307
}
308
x = fabs(x - 2.0 * round(0.5 * x));
309
- if (islessequal(x, 0.25)) {
+ if (x <= 0.25) {
310
return cos(pi * x);
311
312
if (x == 0.5) {
313
return 0.0;
314
315
- if (islessequal(x, 0.75)) {
+ if (x <= 0.75) {
316
return sin(pi * (0.5 - x));
317
318
return -cos(pi * (1.0 - x));
0 commit comments