SIN 45°
-
- Posts: 795
- Joined: Wed May 03, 2017 7:46 pm
- Location: Malone, NY USA
SIN 45°
It's nice to see the sine of 45° is properly calculated in 3.1. Thanks, Thomas!
Tom L
Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
-
- Posts: 1100
- Joined: Tue May 02, 2017 5:48 pm
- Location: Netherlands
- Contact:
Re: SIN 45°
You're welcome -- but it was calculated correctly before 3.1 as well.toml_12953 wrote: ↑Fri Dec 22, 2017 4:56 pmIt's nice to see the sine of 45° is properly calculated in 3.1. Thanks, Thomas!
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.