I've created som Maple-code to determine if for all entrances in a quadratic matrix, D, the inequality di,j <= di,k + dk,j is true.
it works correctly I think. However if I call isDistance on a matrix with square root elements (I use sqrt(some number)) I get the error:
Error, (in isDistance) cannot determine if this expression is true or false: 2*474^(1/2) < 0
I've tried unsuccessfully using absolute values before I compare. What goes wrong and what should I change?
The error-link introduces a single-quote operator which I've tried applying but without success.