#8 atan(float, float) always returns 0

closed
nobody
None
5
2004-12-10
2004-12-08
No

GDL> print, atan(1,1)
0.78540
GDL> print, atan(1.,1.)
0.000000

This is the same for gdl-0.8.5 and -0.8.6

IDL> print, atan(1,1)
0.785398
IDL> print, atan(1.,1.)
0.785398

I think the problem is with the conversions in
math_fun.cpp.
I have uploaded a quick fix, but I don't know enough about
the gdl internals to be confident that this is the
correct way
to solve the problem.

Discussion

  • Marc Schellens

    Marc Schellens - 2004-12-10

    Logged In: YES
    user_id=932957

    Bug is fixed in CVS.

     
  • Marc Schellens

    Marc Schellens - 2004-12-10
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks