The way I think about the three power operators in Haskell is by the simplest types to which they can be applied on the left hand side. (^) is for Integer, (^^) is for Rational, (**) is for Real. The simplest type for which a Rational exponent makes sense are the algebraic numbers.
no subject
Date: 2013-07-22 04:40 pm (UTC)From: