home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2226 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  975 b 

  1. Path: sparky!uunet!mcsun!uknet!edcastle!aiai!jeff
  2. From: jeff@aiai.ed.ac.uk (Jeff Dalton)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: floating point precision
  5. Message-ID: <7215@skye.ed.ac.uk>
  6. Date: 14 Aug 92 17:35:18 GMT
  7. References: <1992Aug13.213615.28011@cs.yale.edu>
  8. Sender: news@aiai.ed.ac.uk
  9. Organization: AIAI, University of Edinburgh, Scotland
  10. Lines: 11
  11.  
  12. In article <1992Aug13.213615.28011@cs.yale.edu> yip-ken@CS.YALE.EDU (ken yip) writes:
  13. >
  14. >How can one specify the floating point precision of a numerical 
  15. >routine?  I was writing a LU-decomposition for solving linear equations.  
  16. >To see the effect of precision on accuracy, I want to run the code in 
  17. >short-float, double-float, and long-float.  Is there a simple way to 
  18. >do this short of explicitly declaring every single variable in the
  19. >program and all the functions it call?  I am using Lucid.
  20.  
  21. So you win!  (I think.)  In Lucid, you can use a type-reduce
  22. declaration to say all numbers are, say, single-floats.
  23.