Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A simplier math formula
Message
 
 
À
16/12/2008 09:44:24
Information générale
Forum:
Politics
Catégorie:
Autre
Divers
Thread ID:
01367448
Message ID:
01368198
Vues:
9
Tracy,

You are free to believe anything you like, but in this case you believe the wrong thing. *s*

Think of it as the sign of the number is more tightly bound to the number than any operator operating on the number. It defines which side of zero a number is on. Consider this valid expression:

1 + -2 - -3

it evaluates to 2

it is equivalent to

1 - 2 + 3

If the schools are adding to the innumeracy of the US it's a truly sad situation indeed.

>I believe that unary negation has a lower precedence than exponentiation. I think it is included in the rules for binary operations so it is not spelled out in PEMDAS.
>
>I don't think we can go by any programming language's rules of precendence because each language determines its own and it doesn't always match that of math .
>
>For example, -4^2 = -(4^2) = -16 NOT (-4)^2 = 16
>
>That's from my daughter's math worksheets :o) So, if it is wrong, blame her teacher or the math books her teacher used :o)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform