<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>18477</bug_id>
          
          <creation_ts>2012-08-02 21:44:18 +0000</creation_ts>
          <short_desc>[QT3] different results for some atan2 test cases</short_desc>
          <delta_ts>2012-09-25 20:24:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71787</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2012-08-02 21:44:18 +0000</bug_when>
    <thetext>I am seeing different results for a number of atan2 test cases:

- math-atan2-005
  math:atan2(-1, -0.0e0)
  actual: 3.14159265358979
  expected: -math:pi() div 2
  excel: 3.141592654

- math-atan2-006
  math:atan2(+1, 0.0e0)
  actual: 0
  expected: +math:pi() div 2
  excel: 0

- math-atan2-007
  math:atan2(-0.0e0, -1)
  actual: -1.5707963267949
  expected: -math:pi()
  excel: -1.570796327

- math-atan2-008
  math:atan2(+0.0e0, -1)
  actual: -1.5707963267949
  expected: +math:pi()
  excel: -1.570796327

- math-atan2-009
  math:atan2(-0.0e0, +1)
  actual: 1.5707963267949
  expected: -0.0e0
  excel: 1.570796327

- math-atan2-010
  math:atan2(+0.0e0, +1)
  actual: 1.5707963267949
  expected: +0.0e0
  excel: 1.570796327</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74425</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-09-25 14:17:56 +0000</bug_when>
    <thetext>Please may you check your implementation. Some libraries including excel use atan2(x,y) where as our specification uses atan2(y,x). Does this account for the discrepancies?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74463</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2012-09-25 20:24:42 +0000</bug_when>
    <thetext>As you had guessed, the library that I am using defines atan2(x,y). Thanks for pointing this out to me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>