home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / function / 1065 next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.7 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!glasgow!msmith
  2. From: msmith@dcs.glasgow.ac.uk (Matthew Smith)
  3. Newsgroups: comp.lang.functional
  4. Subject: Re: transcendental functions in Gofer
  5. Message-ID: <Bu6Fto.GBx@dcs.glasgow.ac.uk>
  6. Date: 6 Sep 92 22:00:59 GMT
  7. References: <aet.714816424@munagin>
  8. Sender: Matthew Smith
  9. Organization: Computing Sci, Glasgow Univ, Scotland
  10. Lines: 70
  11.  
  12. In article <aet.714816424@munagin> aet@mullian.ee.mu.OZ.AU (bert thompson) writes:
  13.  
  14. >
  15. >has anyone implemented any functions in Gofer to do any of the following on Floats:
  16. >
  17. >sqrt exp log sin atan erf
  18.  
  19. >many thanks!
  20. >
  21. >    bert.
  22.  
  23.  
  24. I have implemented some of these functions.
  25. I have tested on a sun4.
  26. I started with Gofer version 2.23 and created version 2.23.1 with
  27. modifications to the following files:
  28.  
  29. .     builtin.c
  30.       added primitive functions and appropriate definitions and table entries
  31.       called a mymath.h to define maths functions
  32.  
  33. .     main.c
  34.       changed version number
  35.  
  36. .     Makefile
  37.       to include the maths library
  38.  
  39. The prelude has also beed appended with the appropriate definitions.
  40. Supported extras are:
  41.  
  42. .     sin
  43.       cos
  44.       tan
  45.       asn
  46.       acs
  47.       atn
  48.  
  49. .     erf
  50.       erfc
  51.  
  52. .     exp
  53.       log
  54.  
  55. .     sqrt
  56.       cbrt
  57.  
  58.  
  59. These functions seem to work, but no proper testing has been
  60. carried out.
  61.  
  62. Ahh... where do we get it from.....
  63.  
  64. Using anonymous ftp from ftp.dcs.glasgow.ac.uk
  65. the file
  66.   pub/haskell/gofer/msmith/gofer2.23.1/src.tar.Z
  67. has the new source
  68.  
  69.  
  70. If you don't already have the vanilla source for 2.23, it is in
  71.   pub/haskell/gofer/msmith/gofer2.23/src.tar.Z
  72.  
  73.  
  74.  
  75. (For those at Glasgow dcs, the files are in
  76.     ~msmith/pub/gofer2.23/src and ~msmith/pub/gofer2.23.1
  77. )
  78.  
  79.  
  80. --Matthew Smith
  81. (msmith@dcs.glasgow.ac.uk)
  82.