Code: Select all
precedence order as follows (from highest precedence to lowest):
[*]unary minus (-), unary plus (+)
[*]exponentiation(^)
[*]multiplication (*), division (/)
[*]addition (+), subtraction (-)
Should be
Code: Select all
[*]exponentiation(^)
[*]unary minus (-), unary plus (+)
[*]multiplication (*), division (/)
[*]addition (+), subtraction (-)
see the change log
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.
the following code is test on EViews 5.1 (ver 20071008) V6 and V7.1
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
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)