[Haskell-cafe] Fortran mixed mode arithmetic expressions ->
Haskell
michael rice
nowgate at yahoo.com
Mon Oct 26 12:24:46 EDT 2009
Hi Brandon,
Being new to Haskell, I take it (^) and (^^) would be the preferred exponential "operator." When (how,where,why) would one use (**)?
Michael
--- On Mon, 10/26/09, Brandon S. Allbery KF8NH <allbery at ece.cmu.edu> wrote:
From: Brandon S. Allbery KF8NH <allbery at ece.cmu.edu>
Subject: Re: [Haskell-cafe] Fortran mixed mode arithmetic expressions -> Haskell
To: "michael rice" <nowgate at yahoo.com>
Cc: "Brandon S. Allbery KF8NH" <allbery at ece.cmu.edu>, haskell-cafe at haskell.org, "Daniel Fischer" <daniel.is.fischer at web.de>
Date: Monday, October 26, 2009, 12:16 PM
On Oct 26, 2009, at 01:00 , michael rice wrote:I looked for an exponential operator and grabbed the first one I
found. In the Prelude (**) is under the heading Methods, while (^^)
is under the heading Numeric Functions. Reasoning?
It's correct if perhaps not ideal for someone who doesn't think in terms of Haskell. (**) is a member of a typeclass, whereas (^^) is an independent function; you are expected to check that the typeclass is appropriate for what you're doing.
-- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.comsystem administrator [openafs,heimdal,too many hats] allbery at ece.cmu.eduelectrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091026/09fe9e2a/attachment.html
More information about the Haskell-Cafe
mailing list