From: Eddie R. <er...@bm...> - 2008-08-18 23:27:45
|
On Mon, 2008-08-18 at 18:25 -0500, Eddie Rucker wrote: Dang! I keep forgetting to put parenthesis around the r = sqrt (x*x+y*y) e.r. > sqrt is usually faster than sin and cos both in floating point hardware > and software. > > e.r. > > On Tue, 2008-08-19 at 01:16 +0200, Albert Graef wrote: > > Eddie Rucker wrote: > > > Sorry. > > > > > > sqrt (x+:y) = sqrt (0.5*(r+x)) +: sqrt (0.5*(r-x)) > > > when > > > r = sqrt x*x+y*y; > > > end; > > > > That looks neat, I think I'm going to use that. :) > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > pure-lang-users mailing list > pur...@li... > https://lists.sourceforge.net/lists/listinfo/pure-lang-users |