Hi all,
(I am very new to this mail list so please cut me some slack)
trigonometric functions like sin(x) are usually implemented as:
1. Some very complicated function that does bit twiddling and basically
computes the reminder of x by pi/2. An example in
http://www.netlib.org/fdlibm/e_rem_pio
On Wed, Jul 14, 2021 at 11:39 AM Tom Programming
wrote:
> Hi all,
>
> (I am very new to this mail list so please cut me some slack)
>
> trigonometric functions like sin(x) are usually implemented as:
>
> 1. Some very complicated function that does bit twiddling and basically
> computes the remind
I'll note that SciPy actually does have `sinpi` and `cospi`-they just
happen to be private:
https://github.com/scipy/scipy/blob/master/scipy/special/functions.json#L58
https://github.com/scipy/scipy/blob/master/scipy/special/functions.json#L12
They are used extensively inside the module though as
On Wed, Jul 14, 2021 at 12:26 PM Joshua Wilson
wrote:
> I'll note that SciPy actually does have `sinpi` and `cospi`-they just
> happen to be private:
>
> https://github.com/scipy/scipy/blob/master/scipy/special/functions.json#L58
> https://github.com/scipy/scipy/blob/master/scipy/special/function