[Bug 5892] [FO] Requirement: trigonometric functions

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5892


Tim Mills <tim@cbcl.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tim@cbcl.co.uk




--- Comment #2 from Tim Mills <tim@cbcl.co.uk>  2008-11-12 13:08:34 ---
We have implemented a bunch of maths functions (documented at
http://www.xqsharp.com/xqsharp/functions.htm).

When we came to implement the sin/cos functions using the Microsoft .NET
implementations, we were surprised by the behaviour on large inputs:

"For values of $arg outside the range from approximately -9223372036854775295
to approximately 9223372036854775295, the fn:cos function returns $arg
unchanged."

as a result of the behaviour of Math.Sin documented at

http://msdn.microsoft.com/en-us/library/system.math.sin.aspx

which we presume is due to the behaviour of the C function documented at

http://msdn.microsoft.com/en-us/library/aa272931(VS.60).aspx

There is further information relating to the Java platform at

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Math.html

and

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/StrictMath.html

which offers two implementations (StrictMath.Sin and Math.Sin).

I mention this because it may need to be considered when deciding what results 
might be considered as conformant for a particular function.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 12 November 2008 13:08:43 UTC