Page 1 of 1

[doc bug] precedence

Posted: Sat Jun 05, 2010 6:08 pm
by maxchen
in "EViews 7 Users Guide I.pdf", (ver April 2, 2010) P132

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)

Re: [doc bug] precedence

Posted: Mon Jun 07, 2010 7:58 am
by EViews Gareth
Thanks.

Re: [doc bug] precedence

Posted: Sun Jun 27, 2010 1:56 am
by maxchen
Hmm, at the same page, for logical operators, there should be "not, and, or". Say, " and or" --> "not and or". 3 logical operators