Skip to content

Commit 03808d6

Browse files
committed
Add news item and remove testing code
1 parent ad12476 commit 03808d6

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Added trigonometric functions that work in units of half turns, rather than
2+
radians. The new functions :func:`math.acospi`, :func:`math.asinpi`,
3+
:func:`math.atanpi`, and :func:`math.atan2pi` return half-turn angles. The
4+
new functions :func:`math.cospi`, :func:`math.sinpi`, and :func:`math.tanpi`
5+
take half-turn angle arguments. These functions are recommended by IEEE
6+
754-2019 and standardized in C23.

Modules/mathmodule.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ raised for division by zero and mod by zero.
7373

7474
#include "clinic/mathmodule.c.h"
7575

76-
// for testing; do not include in production version
77-
// this prevents the platform functions from ever being used.
78-
#undef HAVE_ACOSPI
79-
#undef HAVE_ASINPI
80-
#undef HAVE_ATANPI
81-
#undef HAVE_ATAN2PI
82-
#undef HAVE_COSPI
83-
#undef HAVE_SINPI
84-
#undef HAVE_TANPI
85-
8676
/*[clinic input]
8777
module math
8878
[clinic start generated code]*/

0 commit comments

Comments
 (0)