9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] circular fonctions: precision?
@ 2011-10-02 16:38 tlaronde
  2011-10-02 17:52 ` Bakul Shah
  2011-10-03 13:03 ` Russ Cox
  0 siblings, 2 replies; 25+ messages in thread
From: tlaronde @ 2011-10-02 16:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

Is there some documentation about the precision of the circular (i.e
trigonometric) fonctions, depending on the (plan9) implementation and
the hardware?

To my limited knowledge, an OS is integer based, so the floating
point support is mainly "user space" and is, despite IEEE754 and due to
the interaction between hardware, software, and programmer, really
floating, but is there a range given for the association of OS/hardware
telling that say sin(r) or asin(s) is accurate, at worst, at some
epsilon near?

To give a context, say you have arcs connected to nodes, and each node
has information about its connected arcs sorted by angle (2D). If I
want to
find the "straightest" arc continuing arc A through node N, I look for
an arc B so that the angle between A and B is nearest to M_PI. But if
the angles (from the node) had been computed by some circular fonction,
even two originally "straight" arcs may present an angle not exactly
M_PI, due to precision. Hence the question.

Cheers,
--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2011-10-03 16:53 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-02 16:38 [9fans] circular fonctions: precision? tlaronde
2011-10-02 17:52 ` Bakul Shah
2011-10-02 18:06   ` erik quanstrom
2011-10-02 18:40     ` Bakul Shah
2011-10-02 18:44       ` erik quanstrom
2011-10-02 18:59         ` andrew zerger
2011-10-02 19:04         ` tlaronde
2011-10-02 19:14         ` Bakul Shah
2011-10-02 19:18           ` erik quanstrom
2011-10-02 18:44     ` tlaronde
2011-10-02 18:48       ` tlaronde
2011-10-02 18:28   ` tlaronde
2011-10-02 19:06     ` Bakul Shah
2011-10-03 11:41       ` tlaronde
2011-10-03 14:39         ` Bakul Shah
2011-10-03 14:46           ` erik quanstrom
2011-10-03 15:29             ` Bakul Shah
2011-10-03 15:58               ` Bakul Shah
2011-10-03 16:49           ` tlaronde
2011-10-03 13:03 ` Russ Cox
2011-10-03 14:44   ` Bakul Shah
2011-10-03 14:57     ` Russ Cox
2011-10-03 15:34       ` Bakul Shah
2011-10-03 15:47         ` Russ Cox
2011-10-03 16:53   ` tlaronde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).