Pow operator precedence

Matej Nanut matejnanut at gmail.com
Fri Jan 13 15:45:26 PST 2012


My HP 49g+ does -2^2 = -4 as well (with special unary minus), in algebraic
mode. Would love to test it on the 41C, but it only has RPN. ^_^

I've been swayed into the »let's keep it« direction.

I'll start using it, too. It even works as an array operator. =D

On 14 January 2012 00:30, Stewart Gordon <smjg_1998 at yahoo.com> wrote:
> On 13/01/2012 19:24, Grue wrote:
> <snip>
>>
>> Beware... your statement has awoken an "Ancient Forum Lurker"! ;)
>> 1. Google -5^2, result: -(5^2) = -25
>> 2. Start ancient TI graphing calculator(which by the way has a special
>> unary (-) minus
>> operator).
>> -5^2 = -25
>> -5*²* = -25
>
> <snip>
>
> And probably most BASICs.  Just checked VBA and Spectrum BASIC.  Once upon a
> time I would have had QBasic to test on as well.
>
> Stewart.


More information about the Digitalmars-d mailing list