TIB: A possible MAJOR bug on the 86


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

TIB: A possible MAJOR bug on the 86




I don't know if my calculator is messed up, or what, but I have a serious
problem.
I have rom 1.2 on the 86.

Why doesn't this work?:

10-->D
gcd(D,12



It returns a domain error.


If that works for you, try this subroutine I made up:

First store {10,12,4,2,8,12} into L


:dimL L-->A
:L(1)-->D
:For(B,1,A-1)
:gcd(D,L(B+1))-->D
:End
:L/D-->L


This subroutine find the gcd of all the numbers stored in list L, and then
divides by it, thereby "simplifying" it.

BUT, whenever I store {10,12,4,2,8,12} in for L and then run the program, it
gives a DOMAIN error.  WHY?

It works perfectly for any other list, but specifically {10,12,4,2,8,12}
doesn't seem to work.




Thanks,

Mohsan H.


Follow-Ups: