Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bard on trig....

38 views
Skip to first unread message

Chris M. Thomasson

unread,
Apr 21, 2023, 8:36:06 PM4/21/23
to
Humm... It tried to tell me that cos(0) does not equal sin(pi/2)... This
is bad:

https://i.ibb.co/DgtknZS/image.png

Humm...

Manu Raju

unread,
Apr 21, 2023, 11:00:10 PM4/21/23
to

Bonita Montero

unread,
Apr 22, 2023, 5:07:46 AM4/22/23
to
Depending on the implementation
bit_cast<int64_t>( sin( M_PI / 2 ) )
may be not equal to
bit_cast<int64_t>( cos( 0 ) ).

Chris M. Thomasson

unread,
Apr 22, 2023, 3:45:36 PM4/22/23
to
It learned! Nice. :^D

Chris M. Thomasson

unread,
Apr 22, 2023, 3:50:29 PM4/22/23
to
I was mostly interested in the mathematical truth that cos(0) =
sin(pi/2)... ;^)

Wrt degrees, pi/2 = 90 degrees.

So, I was not really interested in precision issues.

Chris M. Thomasson

unread,
Apr 27, 2023, 3:16:41 AM4/27/23
to
chat gpt knows what the versine function is! Nice. Shit. When is the
last time you used that one?
0 new messages