Page 1 of 1

overflow

Posted: Thu Aug 02, 2018 2:00 am
by pinson
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?

Re: overflow

Posted: Thu Aug 02, 2018 7:37 am
by EViews Gareth
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.

Re: overflow

Posted: Thu Aug 02, 2018 9:03 am
by pinson
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?

Re: overflow

Posted: Thu Aug 02, 2018 9:04 am
by EViews Gareth
Indeed.