Re: A86: Overflow error


[Prev][Next][Index][Thread]

Re: A86: Overflow error





On Tue, 26 May 1998 15:38:56 -0500 "Blake Johnson" <johns627@tc.umn.edu>
writes:
>
>> >  call _OP6TOOP1       ;OP1=y
>> >  call _OP2SET1                ;OP2=1
>> >  call _FPSUB          ;OP1=y-1
>> >  call _OP6TOOP2       ;OP2=y
>> >  call _FPMULT         ;OP1=y(y-1)
>> >  call _OP5TOOP2       ;OP2=x
>> >  call _FPMULT         ;OP1=x*y(y-1)
>>
>> from the basic version:
>> >:For(N,0,150)
>> >:X*Y(1-Y)->Y
>> >:If N>100
>>
>> is it supposed to be (1-y) or (y-1)?
>>
>Your right, it is supposed to be (1-Y).  I will have to change the 
>code to
>read:
>  call _OP6TOOP2
>  call _OP1SET1
>  call _FPSUB
>  call _FPMULT
>  call _OP5TOOP2
>  call _FPMULT
>
>Thanks for helping me with that but that still doesn't answer my 
>question
>about the overflow error.  Anyone have an idea about the overflow 
>error?

i think that's what caused the overflow.  that's where it was and y was
getting very huge.

-josh

>
>--Blake Johnson
>
>

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


References: