FYI,
I think there's a problem with ccalc's atan2 when the second argument is zero. atan2(1,0) should yield pi/2, but:
ccalc 'atan2(1,0)'
1.0
ccalc 'atan2(-1,0)'
-1.0
ccalc 'atan2(1,0.000000001)'
1.570796
ccalc 'atan2(1,-0.000000001)'
1.570796
ccalc 'atan2(-1,0.000000001)'
-1.570796
ccalc 'atan2(-1,-0.000000001)'
-1.570796
It doesn't seem to be platform or compiler specific. I was able to test
AFNI_2008_07_18_1710
[[Precompiled binary linux_xorg7_64: Apr 9 2009]]
[[Precompiled binary solaris29_suncc_64: Oct 23 2008]]
[[Precompiled binary macosx_10.4_Intel: Jul 30 2008]]
--judd