Re: Re: A86: Overflow error
[Prev][Next][Index][Thread]
Re: Re: A86: Overflow error
> > 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?
--Blake Johnson
Follow-Ups: