Could you, please, identify the algorithms used (such as well-known
name, link, etc.)?
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
On Tue, Mar 2, 2010 at 11:18 PM, COUTHURES Alain
<alain(_dot_)couthures(_at_)agencexml(_dot_)com> wrote:
Hello,
As you know, XSLT 1.0 and XPath 1.0 are now widely supported.
Unfortunately, XPath 1.0 doesn't come with mathematical functions such as
"sqrt", "sin", "cos", "ln",... XPath 2.1 surely will but we'll have to wait
to see it available in every environment.
Because such functions may be required for graphics generation, a workaround
has to be used. Hopefully, named templates can be defined with XSLT 1.0: a
name, one or more parameters and every XSLT 1.0 possibility, recursivity to
be used instead of loops.
Algorithms based on +, -, * and / only are not that easy to find.
CORDIC-based algorithms are not always very precise. Others, such as the ones
for a Javascript engine, are optimized for binary processing.
Anyway, it works!
You can have a look at http://www.agencexml.com/math/math.xml and
http://www.agencexml.com/math/math.xsl
As you can see, it's fast and precise.
Best regards,
Alain Couthures
<agenceXML>
Bordeaux, France
http://www.agencexml.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--