Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2002 23:33:33 -0600
From:      "Mike Meyer" <mwm-dated-1014528813.4615a8@mired.org>
To:        Peter Ulrich Kruppa <root@pukruppa.de>
Cc:        Mike Meyer <mwm-dated-1014517286.925557@mired.org>, "D. Michael McFarland" <dmmcf@uiuc.edu>, chat@freebsd.org
Subject:   Re: Advice sought re MS Office compatibility
Message-ID:  <15473.58285.236545.514222@guru.mired.org>
In-Reply-To: <20020219062359.Q7320-100000@pukruppa.de>
References:  <15473.46758.516892.756570@guru.mired.org> <20020219062359.Q7320-100000@pukruppa.de>

next in thread | previous in thread | raw e-mail | index | archive | help
[moved from -questions to -chat]

Peter Ulrich Kruppa <root@pukruppa.de> types:
> On Mon, 18 Feb 2002, Mike Meyer wrote:
> > D. Michael McFarland <dmmcf@uiuc.edu> types:
> > > Word and PowerPoint are necessities, unless I refuse to even pretend
> > > to MS Office compatibility.  No one is yet asking me to use Exel.
> > > (Does it still claim -1^2 == +1?)
> > I don't know, but the bc provided with FreeBSD does:
> >
> > guru% bc
> > bc 1.06
> > Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
> > This is free software with ABSOLUTELY NO WARRANTY.
> > For details type `warranty'.
> > -1^2
> > 1
> > Because of ambiguities in common mathematical notation,
> There is no ambiguity in (in this) mathematical notation.
> -1^2 = -1
> (-1)^2 = +1

Nope. The first one is ambiguous, because you don't know the
precedence of the negation operator with respect to the power
operator. I'd say the unambiguous parsing you gave was the the most
commonly used of the two choices the ambiguous parsing gives.

> > there's at
> > least one parsing for which it's the right answer.
> So these parsings are wrong.

No, mixing infix, postfix and prefix notations is wrong. Which of the
multitude of ambiguities doing so results in you prefer is just that -
a preference.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15473.58285.236545.514222>