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 11544 - Typo in the last three math:sqrt examples
Summary: Typo in the last three math:sqrt examples
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Linux
: 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: 2010-12-13 12:36 UTC by O'Neil Delpratt
Modified: 2011-06-07 13:54 UTC (History)
0 users

See Also:


Attachments

Description O'Neil Delpratt 2010-12-13 12:36:54 UTC
In Section 4.7.7 math:sqrt of the XPath30 and XQuery functions and operators spec:

See the Example sub-section for math:sqrt, the last three are showing examples for the math:log10 function instead of math:sqrt.


Example for math:sqrt:

    The expression math:sqrt(()) returns ().

    The expression math:sqrt(0.0e0) returns 0.0e0.

    The expression math:sqrt(-0.0e0) returns -0.0e0.

    The expression math:sqrt(1.0e6) returns 1.0e3.

    The expression math:sqrt(2.0e0) returns 1.4142135623730951e0.

    The expression math:sqrt(-2.0e0) returns xs:double('NaN').

    The expression math:log10(xs:double('NaN')) returns xs:double('NaN').

    The expression math:log10(xs:double('INF')) returns xs:double('INF').

    The expression math:log10(xs:double('-INF')) returns xs:double('NaN').
Comment 1 Michael Kay 2010-12-13 15:18:22 UTC
Thanks for reporting this. Fixed at source.
Comment 2 Michael Kay 2011-06-07 13:54:43 UTC
Closing since the problem is now fixed.