W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2008

[Bug 5892] [FO] Requirement: trigonometric functions

From: <bugzilla@wiggum.w3.org>
Date: Wed, 12 Nov 2008 13:08:34 +0000
To: public-qt-comments@w3.org
Message-Id: <E1L0FSU-0003e0-Le@farnsworth.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:25 UTC