overflow

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

pinson
Posts: 4
Joined: Wed Jul 25, 2018 2:37 am

overflow

Hi,
how do I deal with an overflow message, please?
I am trying to fill in a matrix with the following:

matrix(16,10) vev
scalar sca=1
for !i=1 to 16
vev(!i, 1)=sca
scalar sca = sca+1
next
for !i=1 to @rows(vev)
for !j=2 to @columns(vev)
vev(!i,!j)=vev(!i,!j-1)^2
next
next

but can not get past vev(4,10)?
setting maxerrors to 10 000 didnt help.
Any leads on what am I doing wrong?

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

Re: overflow

You're generating a number too large for the computer to handle.

You're squaring 13,407,807,929,942,600,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.

pinson
Posts: 4
Joined: Wed Jul 25, 2018 2:37 am

Re: overflow

Thanks, Gareth. Yes, that is the task I was given. Admittedly, it's part of an eviews-learning exercise. So nothing to do about that? i.e. it's a silly operation to do?

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

Indeed.