delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/28/14:54:14

Message-Id: <3.0.6.32.19990228135216.009b0c70@pop.globalserve.net>
X-Sender: derbyshire AT pop DOT globalserve DOT net
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Sun, 28 Feb 1999 13:52:16 -0500
To: djgpp AT delorie DOT com
From: Paul Derbyshire <pderbysh AT usa DOT net>
Subject: Re: sin, cos ??
In-Reply-To: <3.0.6.32.19990227021519.0088c6f0@pop.globalserve.net>
References: <36D5B053 DOT 2AA88FD6 AT cartsys DOT com>
<36d2f284 DOT 0 AT news DOT sbbs DOT se>
<199902231842 DOT NAA15055 AT envy DOT delorie DOT com>
<7b26kt$g5n AT chronicle DOT concentric DOT net>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

At 02:15 AM 2/27/99 -0500, I wrote:
>At 12:19 PM 2/25/99 -0800, you wrote:
>>Paradox wrote:
>>> 
>>> Is there another function that uses degrees?
>>
>>No, but you can easily convert between the two.
>>
>>#include <math.h>
>>#define DEG2RAD(deg) ((deg)*(M_PI/180.0))
>>#define RAD2DEG(rad) ((rad)*(180.0/M_PI))
>
>Ack! Macros!
>
>const long double pi = 3.141592653589793
>
>template <class F> // 'F' as in 'Floating point'
>inline F deg2rad (F deg) { return deg*pi/180.0; }
>
>template <class F>
>inline F rad2deg (F rad) { return 180.0*rad/pi; }
>
>There. Nice and type-safe and free of bogons with arguments that have side
>effects. More readable too, just as inlined and quick, and moreover, if you
>have egcs you can stick these in your own namespace and keep them from
>cluttering the global one.
>
>-- 
>   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
>-()  <  circles, and bark is not smooth, nor does lightning travel in a
>   `*'  straight line."    -------------------------------------------------
>        -- B. Mandelbrot  |http://surf.to/pgd.net
>_____________________ ____|________     Paul Derbyshire     pderbysh AT usa DOT net
>Programmer & Humanist|ICQ: 10423848|
>
>

...and your listserver sent it to me now at 13:47 2/28/99, about 36 hours
later and after I had already received several replies and made several
replies to the replies and gotten several replies to *those* ... !

What the heck's wrong with it? It should be a FIFO queue, right? And it
certainly shouldn't send a list message to Eli nearly immediately and then
wait about a whole DAY to then send me my copy!

Even if there are billions of subscribers and after getting a message it
does take a whopping 24+ hours to go from A to Z sending copies to all of
these subscribers, my last name begins with a D, and his begins with a Z...

-- 
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."    -------------------------------------------------
        -- B. Mandelbrot  |http://surf.to/pgd.net
_____________________ ____|________     Paul Derbyshire     pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019