Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A simplier math formula
Message
From
16/12/2008 08:20:08
 
General information
Forum:
Politics
Category:
Other
Miscellaneous
Thread ID:
01367448
Message ID:
01367813
Views:
8
>>>-2**2
>>>
>>>what the answer... I lost my bet with my secondary schoolgirl daughter... :(
>>
>>There are some implied parenthesis in the expression and the result depends on where they are.
>>
>>Does the expression mean -(2**2) or (-2)**2?
>
>Implied parenthesis? I didn't know there were any. I thought in the absence of parenthesis the rules of precedence and right or left associativity apply.

Oh yes, there are. They are defined by the rules of precedence and right or left associativity - as you put it

It's like converting an expression to a fully parenthesized expression.
The ones that were added in the fully parenthesized expression were 'implied' - wouldn't you agree ?
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform