This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18478 - [QT3] slightly different results for some tan test cases
Summary: [QT3] slightly different results for some tan test cases
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-02 21:47 UTC by Andrew Eisenberg
Modified: 2013-05-02 16:55 UTC (History)
1 user (show)

See Also:


Attachments

Description Andrew Eisenberg 2012-08-02 21:47:01 UTC
I'm seeing slightly different results for some tan test cases:

- math-tan-006
  math:tan(math:pi() div 4)
  actual: 1
  expected: 0.9999999999999999
  excel: 1

- math-tan-007
  math:tan(-math:pi() div 4)
  actual: -1
  expected: -0.9999999999999999
  excel: -1
Comment 1 O'Neil Delpratt 2012-08-08 12:45:18 UTC
I would like to ask Mike to comment on this bug. The bug 15233  may be related. Specifically what the IEEE spec states on the possible values of pi.
Comment 2 O'Neil Delpratt 2013-03-20 10:48:44 UTC
I am inclined to mark this bug as resolved because is has been resolved in bug 15233.

*** This bug has been marked as a duplicate of bug 15233 ***
Comment 3 Andrew Eisenberg 2013-03-20 13:22:29 UTC
Bug #15233 changed both the queries of test cases math-tan-006 and math-tan-007. It changed the results to 0.9999999999999999 and -0.9999999999999999, respectively. I don't believe that it addresses whether 1 and -1 should be accepted as well.
Comment 4 Michael Kay 2013-05-01 13:28:51 UTC
I have changed these two tests to allow some imprecision in the results in the same way as other similar tests.