in reply to Re: Maybe I'm just dumb...
in thread Debugging a sort in PDL routine
I expect you are getting something similar (i.e. #QNAN), as I am guessing some of the values $d are outside the domain of the "Real" solutions of acos.use Math::Cephes qw/acos/; for ( -2, -1.1, -1, 0, 1, 1.1, 2 ) { print acos($_),$/; }
-enlil
|
---|