Menu

#305 atan2(2,0.3) gives non-float answer /FIX

closed
nobody
None
5
2003-08-03
2003-05-06
No

atan2(a,b) should be an approximate number (float or
bfloat) whenever one of the arguments is approximate
and the other is either approximate or an exact number.

This is not currently true. All the following give results
involving %PI: atan2(-1.0,-1), atan2(-1.0b0,-1.0), atan2(-
2/3,-1.0b0) etc.

The attached code fixes this.

Discussion

  • Stavros Macrakis

     
  • Raymond Toy

    Raymond Toy - 2003-08-03
    • status: open --> closed
     
  • Raymond Toy

    Raymond Toy - 2003-08-03

    Logged In: YES
    user_id=28849

    Suggested fix applied.

     

Log in to post a comment.