From 2312cb0d496e2f311205b3db1d5e33c82099f92a Mon Sep 17 00:00:00 2001 From: Spotandjake Date: Thu, 3 Oct 2024 11:22:27 -0400 Subject: [PATCH] chore(stdlib): Cleanup old trig func from Number lib --- stdlib/number.gr | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/stdlib/number.gr b/stdlib/number.gr index 7bdd54e1a..80da1f1ae 100644 --- a/stdlib/number.gr +++ b/stdlib/number.gr @@ -661,28 +661,6 @@ provide let parse = input => { } } -/** - * Computes how many times pi has to be subtracted to achieve the required bounds for sin. - */ -let reduceToPiBound = (radians: Number) => { - floor(radians / pi) -} - -/** - * Computes the sine of a number using Chebyshev polynomials. Requires the input to be bounded to (-pi, pi). More information on the algorithm can be found here: http://mooooo.ooo/chebyshev-sine-approximation/. - */ -let chebyshevSine = (radians: Number) => { - let pi_minor = -0.00000008742278 - let x2 = radians * radians - let p11 = 0.00000000013291342 - let p9 = p11 * x2 + -0.000000023317787 - let p7 = p9 * x2 + 0.0000025222919 - let p5 = p7 * x2 + -0.00017350505 - let p3 = p5 * x2 + 0.0066208798 - let p1 = p3 * x2 + -0.10132118 - (radians - pi - pi_minor) * (radians + pi + pi_minor) * p1 * radians -} - @unsafe let rf = z => { // see: musl/src/math/asin.c and SUN COPYRIGHT NOTICE at top of file