🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.functional
Article #177

transcendental functions in Gofer

#177
From: bert thompson
Date: Wed, 26 Aug 1992 08:07
19 lines
1003 bytes
hi!

has anyone implemented any functions in Gofer to do any of the following on Floats:

sqrt exp log sin atan erf

the sqrt is easy, but the limited support for Floats in Gofer means that the others
are hard to do adequately.

btw, i don't mind if you've use `primitive' to define them in the interpreter itself.
even if you don't have code, hints would be good. i don't have problems with the
numerical analysis, but the absence of functions to return the exponent and mantissa
of a Float is a real problem. (perhaps Mark Jones might consider defining such
functions a la Haskell in the next release?)

many thanks!

	bert.
Technical Details
Message-ID: <aet.714816424@munagin>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!aet

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.functional
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!aet
From: aet@mullian.ee.mu.OZ.AU (bert thompson)
Subject: transcendental functions in Gofer
Message-ID: <aet.714816424@munagin>
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
Date: Wed, 26 Aug 1992 08:07:04 GMT
Lines: 21