| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Floating point feature w |
On Sunday, 97/01/19, Tom Almy wrote to Thomas Seeling about "Floating point feature wi" as follows: TA> I discovered that if you use the inline function optimization, TA> trig functions break with large argument values. Try sin(1e30) -- TA> the result isn't between -1 and 1! Hi Tom, There was a discussion in the Usenet comp.lang.rexx Newsgroup a couple of weeks ago about errors evaluating transcendental functions. This specific problem was included. The issue arises over the uncertainty in the argument exceeding the full cycle from 0 to 2*pi, which means that any value in the range -1 to 1 could be returned as being valid. I suspect Intel has chosen to ignore this in the hardware implementation of trig. functions, and the FPU simply returns whatever turns up after its [probably] iterative algorithm has run its course. Regards Dave * KWQ/2 1.2i * Windows: Revenge of the Nerds, Part 3.1 --- Maximus/2 3.01* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4) SEEN-BY: 50/99 54/99 270/101 620/243 625/110 160 711/401 413 430 808 934 SEEN-BY: 712/311 407 505 506 517 623 624 704 713/317 800/1 @PATH: 440/4 141/209 270/101 712/624 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.