SIN 45°

Discussion around the Swiss Micros DM42 calculator.
Post Reply
toml_12953
Posts: 692
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

SIN 45°

Post by toml_12953 »

It's nice to see the sine of 45° is properly calculated in 3.1. Thanks, Thomas!
Tom L

If I buy someone a drink to congratulate them, is it a Mazel Tov cocktail?

DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
Thomas Okken
Posts: 802
Joined: Tue May 02, 2017 5:48 pm
Location: United States
Contact:

Re: SIN 45°

Post by Thomas Okken »

toml_12953 wrote:
Fri Dec 22, 2017 4:56 pm
It's nice to see the sine of 45° is properly calculated in 3.1. Thanks, Thomas!
You're welcome -- but it was calculated correctly before 3.1 as well.

Here's what happened:

In Free42 1.5.2, I introduced a special case for SIN and COS of 45° / 50 grads. This case was implemented incorrectly, but in a way that somehow ended up doing what I wanted it to anyway, except in the Decimal build for Windows. The Windows Decimal build would return a value that was correct in only 16 digits, instead of all 34.

I fixed the offending code, so it does the right thing on all platforms now, but again, the only versions that ever returned an incorrect result for SIN and COS of 45° / 50 grads are 1.5.2 through 2.0.7, Windows Decimal. The DM42 was never affected.
Post Reply