Haskell 98 - Standard Prelude - Floating Class

Simon Peyton-Jones [email protected]
Mon, 15 Oct 2001 05:58:10 -0700


Fpr the Revised Haskell 98 report, Russell O'Connor suggests:
              =20
| Also, I understand you are reluctant to make library changes,=20
| but sinh and cosh can easily be defined in terms of exp
|=20
| sinh x =3D (exp(x) - exp(-x))/2
| cosh x =3D (exp(x) + exp(-x))/2
|=20
| (source: Calculus Third Edition by Michael Spivak, page 349,=20
| or any decent calculus book)
|=20
| I suggest removing sinh and cosh from the minimal complete=20
| definition, and add the above defaults.

This looks pretty reasonable to me.  We should have default methods
for anything we can.

Comments?

Simon