Addition operator is not commutative

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

Sander
Posts: 2
Joined: Sun Aug 23, 2009 3:25 am

Addition operator is not commutative

Postby Sander » Fri Aug 28, 2009 8:11 am

The following code constructs vectors v1 and v3, but results in an error message for the lines which should construct v2 and v4.

Code: Select all

vector(1) v0
scalar alpha = 1
!a = 1

vector v1 = v0+alpha
vector v2 = alpha+v0

vector v3 =  v0+!a
vector v4 = !a+v0


Hence, the first (left) variable for the addition operator needs to be of the final type.

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

Re: Addition operator is not commutative

Postby EViews Gareth » Fri Aug 28, 2009 8:23 am

Yep, that one has been on my list to fix for a while. I'll see if we can get it fixed for EViews 7
Follow us on Twitter @IHSEViews


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest