home bbs files messages ]

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

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,951 messages   

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

   Message 116,518 of 117,951   
   Krishna Myneni to Krishna Myneni   
   Re: F*/ (f-star-slash)   
   02 Jun 24 07:11:12   
   
   From: krishna.myneni@ccreweb.org   
      
   On 5/19/24 16:28, Krishna Myneni wrote:   
   > The analog of */ for single length integers, with intermediate double   
   > length result, can be implemented for floating point arithmetic as well.   
   > The following implementation of F*/ uses the non-standard word, UD/MOD,   
   > although it might be possible to code it with UM/MOD as well. It also   
   > requires FP@ (requiring a separate fp stack in memory).   
   >   
   ...   
      
   Based on how it handles large integer arithmetic, I half-expected that   
   double-precision floating point arithmetic overflow/underflow would by   
   handled automatically by python. That appears not to be the case:   
      
   Python 3.12.3:   
    >>> 3.12e306 * 1.1e145 / 2.8e150   
   inf   
      
      
   Using F*/ in Forth:   
      
   3.12e306 1.1e145 2.8e150 f*/ fs.   
   1.22571428571429e+301  ok   
      
   --   
   KM   
      
   --- 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