On Thu, 28 Aug 2003, Silvio a Beccara wrote:
I get a 'argument to `SqRt' is < 0' error. I have checked that the argument is never < 0, so I don't understand why I should get this error (if I comment the sqrt instruction, though, the error goes away!). Also by using the -g option and gdb, I don't get any more information. Can anybody help me, possibly by suggesting some other debug option/method?
You might try this simple approach: Assuming it's sqrt(i) then add 2 lines just before the sqrt:
writeln(i); if( i < 0 ) then i := -i;
This writes i to stdout; you could "writeln( stderr, i );"
Russ