[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

precedence of Haskell unary minus



Original-Via: uk.ac.nsf; Sat, 9 Mar 91 08:15:41 GMT
Date: Fri, 8 Mar 91 09:56:59 CST
From: "Rector L. Page" <zrlp09@trc.amoco.com>
To: haskell@edu.yale.cs
Subject: precedence of Haskell unary minus
Original-Sender: zrlp09%com.amoco.trc@yale.edu
Sender: haskell-request@cs.glasgow.ac.uk

The syntax and semantics of numerical algebraic expressions should
reflect, as closely as possible, customary mathematical notations.
All readers of high-school algebra texts or calculus texts or any 
writings in the general area of real or complex variables would expect
-2^2 to be -4.  Writers wanting to indicate the square of -2 would
use the formula (-2)^2.

-- Rex