## [doc bug] precedence

For notifying us of what you believe are bugs or errors in EViews.

Moderators: EViews Gareth, EViews Moderator

maxchen
Posts: 191
Joined: Fri Oct 10, 2008 4:03 pm

### [doc bug] precedence

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.htmlJuly, 2007Changed 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 8genr a = -3^2genr b = -a^2genr x = (-3)^2group ga a b xshow 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)

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12339
Joined: Tue Sep 16, 2008 5:38 pm

### Re: [doc bug] precedence

Thanks.

maxchen
Posts: 191
Joined: Fri Oct 10, 2008 4:03 pm

### Re: [doc bug] precedence

Hmm, at the same page, for logical operators, there should be "not, and, or". Say, " and or" --> "not and or". 3 logical operators