Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A simplier math formula
Message
De
15/12/2008 18:39:27
 
 
Information générale
Forum:
Politics
Catégorie:
Autre
Divers
Thread ID:
01367448
Message ID:
01367671
Vues:
8
>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.

No David. In normal math, the unary operator does not have precedence because it actually represents a multiplication by -1. In other words, -2**2 is the same as saying -1*2**2 and since exponentiation takes precedence over multiplication, the correct answer is -4. For the record, I thought it was 4 at first too.

Check this out: http://mathforum.org/library/drmath/view/69058.html
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform