[doc bug] precedence
Posted: Sat Jun 05, 2010 6:08 pm
in "EViews 7 Users Guide I.pdf", (ver April 2, 2010) P132
Should be
see the change log
the following code is test on EViews 5.1 (ver 20071008) V6 and V7.1
thus, the simple examples in the same page , "-1^2, evaluates to (–1)^2=1 since the unary minus is evaluated prior to the power operator." is not consistent with the new update (versions)
Code: Select all
precedence order as follows (from highest precedence to lowest):
[*]unary minus (-), unary plus (+)
[*]exponentiation(^)
[*]multiplication (*), division (/)
[*]addition (+), subtraction (-)Code: Select all
[*]exponentiation(^)
[*]unary minus (-), unary plus (+)
[*]multiplication (*), division (/)
[*]addition (+), subtraction (-)Code: Select all
http://www.eviews.com/download/ev6download.html
July, 2007
Changed the precedence of unary negative sign and raised to the power (^) in scalar operations to match that of series operations so that for example -3^2 = -9 instead of 9.
Code: Select all
wfcreate u 8
genr a = -3^2
genr b = -a^2
genr x = (-3)^2
group ga a b x
show ga