home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3263 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.7 KB

  1. Xref: sparky comp.lang.fortran:3263 comp.unix.cray:253
  2. Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!darwin.sura.net!dtix!mimsy!afterlife!relay!diamond.nswc.navy.mil!rsherme
  3. From: rsherme@diamond.nswc.navy.mil (Russel Shermer (R43))
  4. Newsgroups: comp.lang.fortran,comp.unix.cray
  5. Subject: Re: CRAY-YMP single precision machine constants.
  6. Message-ID: <1992Aug28.160058.23129@relay.nswc.navy.mil>
  7. Date: 28 Aug 92 16:00:58 GMT
  8. References: <1992Aug27.160828.18574@tamsun.tamu.edu>
  9. Sender: news@relay.nswc.navy.mil
  10. Organization: NAVSWC DD White Oak Det.
  11. Lines: 37
  12.  
  13.  
  14. In article <1992Aug27.160828.18574@tamsun.tamu.edu>, ssp2537@tamsun.tamu.edu (Satya Srinivas Padavala      ) writes:
  15. |> Hi Folks,
  16. |> 
  17. |>      I am wondering if any knowledgeable soul could help me with the following 
  18. |> problem. I have been using in my code, BLAS (Basic Linear Algebra Subprograms),
  19. |>  which are routines called by public domain math packages such as LINPACK, 
  20. |> EISPACK etc. I have recently started working on a CRAY-YMP and am need of the 
  21. |> following machine constants for single precision for that machine. 
  22. |> 
  23. |>  1) Smallest positive magintude
  24. |>  2) Largest positive magnitude
  25. |>  3) Smallest relative spacing
  26. |>  4) Largest relative spacing
  27. |> 
  28. |>  I would appreciate your help if you can point me where I can find these
  29. |> values.
  30. |> 
  31. |> Thanks,
  32. |> Satya Padavala
  33. |> ssp2537@tamsun.tamu.edu 
  34.  
  35. I'm on a Cray-2 but, you should be able to find the max and min info
  36. in /usr/include in the files:
  37.  
  38. limits.h
  39. values.h
  40. float.h
  41.  
  42. I didn't see any spacing information.  There are very simple
  43. algorithms for computing the machine epsilon.  Basically,
  44. you compute the smallest number larger than 1 that the machine
  45. can distinguish.
  46.  
  47. Hope this helps.
  48.  
  49.     ---Russ
  50.