in reply to Operator Precedence (unary negation and exponentiation)
Ah yes, you're wrong. -2**2 is -4, (-2)**2 is 4.
Assume that -2**2 = 4, now add zero to both sides and you have 0 - 2**2 = 0 + 4, reduce the exponent and you have 0 - 4 = 0 + 4 (exponentiation definitely binds tighter than subtraction), which reduces to -4 = 4 which is obviously not true.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Operator Precedence (unary negation and exponentiation)
by Elliott (Pilgrim) on Jan 18, 2003 at 15:56 UTC | |
by pdcawley (Hermit) on Jan 19, 2003 at 02:17 UTC | |
by Elliott (Pilgrim) on Jan 23, 2003 at 01:55 UTC | |
by pdcawley (Hermit) on Jan 23, 2003 at 04:59 UTC |