Look at that: -->atan(0, 0) ans = 0.00000000D+00 -->atan(0, -0) ans = 3.14159265D+00 --> -0 == 0 ans = T :-(( Funny, isn't it ?! There may be no connexion with your result, or there may. Samuel