Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Math Formula
Message
From
15/12/2008 09:20:48
 
 
To
15/12/2008 09:06:49
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Politics
Category:
Other
Title:
Miscellaneous
Thread ID:
01366554
Message ID:
01367426
Views:
5
>>Exponentiation in fortran is right to left (but we do not have exponents in C#) - That's how it is defined
>
>Actuallt exponentiation is down to up.

No, it's up to down
http://mathforum.org/library/drmath/view/53887.html

We are used to this being true for addition and multiplication, but it 
is NOT TRUE of exponents; for that reason, it is important to include 
parentheses to clarify this, though by convention we take a^b^c to 
mean a^(b^c). 
.
    2
  3       9
2      = 2  = 512
>>Also C# and its old predecessor C - assignment is right to left
>>
>>int i, j, k;
>>i = j = k = 1;
>>
>>or
>>i = (j = (k = 1))) ;
>
>These are dangerious codes. Like puzzle... :)
>
>Actually I never trust left-to-right. They said us everytime "paranthesis are more secure.".


Whilst it is true that parentheses are more secure, there are times you will not use them.
a = b = c = 1;
a = b * c * d + 1;
The rules of precedence and associativity have been invented for us - humans - and by us. Without them, we would have to write fully parenthesized expressions every time;
a = (b = (c = 1)));
a = ((b * c) * d) + 1;
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform