home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.fortran      Putting John Backus on a giant pedestal      5,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,800 of 5,127   
   Steven G. Kargl to Lawrence D'Oliveiro   
   Re: Angle Units For Trig Functions   
   24 Oct 24 05:06:37   
   
   From: sgk@REMOVEtroutmask.apl.washington.edu   
      
   On Thu, 24 Oct 2024 04:47:06 +0000, Lawrence D'Oliveiro wrote:   
      
   > On Thu, 24 Oct 2024 02:17:15 -0000 (UTC), Steven G. Kargl wrote:   
   >   
   >> One of these values is wrong.   
   >   
   > Only if you assume the input numbers were somehow “exact” or   
   “perfect” to   
   > begin with.   
   >   
   > There’s an old principle in computing: “Garbage In, Garbage Out”.   
      
   People discussing Fortran normally use floating point math when   
   computing sin(x) or any other function of a "real" quantity.   
      
   >   
   >> You seem to be missing that argument reduction for sind(x)   
   >> is much easier than argument reduction for sin(x).   
   >   
   > But that only worked for one angle, and for nothing else.   
      
   ROFL.   
      
   For sin(x), argument reduction will give sin(0) = 0, exactly.   
   That's one angle.   
      
   For sind(x), argument reduction will give sind(x) = 0, exactly,   
   for countable many angles.   
      
   --   
   steve   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca