Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A simplier math formula
Message
 
 
To
15/12/2008 10:10:55
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Politics
Category:
Other
Miscellaneous
Thread ID:
01367448
Message ID:
01367646
Views:
9
Metin,

> but online math calculator, my math. eng. friend and my daughter say -4... :(

They are all wrong. The answer is 4.

The unary negation operation has higher precedence than exponentiation.

I order for the answer to be -4, the expression would have to be -(2**2) using parens in order to force the exponentiation to happen first.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform