Vector Class Discussion

 
thread New version 1.12 has math functions - Agner - 2014-04-23
last replythread New version 1.12 has math functions - Freddie Witherden - 2014-05-02
last reply New version 1.12 has math functions - Agner - 2014-05-02
 
New version 1.12 has math functions
Author: Agner Date: 2014-04-23 04:40
I have uploaded a new version of the vector class library. It has all the standard mathematical functions such as logarithms, exponential functions, trigonometric functions, etc. These functions are inlined so there is no need to link to an external library any more. Several other functions have been added.
   
New version 1.12 has math functions
Author:  Date: 2014-05-02 01:13
The addition of the standard mathematical functions is extremely interesting. Do you have a feel for how the numerics compare to those used by SVML/SLEEF in terms of maximum error (ulp) over a standard range?
   
New version 1.12 has math functions
Author: Agner Date: 2014-05-02 01:26
Thank you for drawing my attention to the SLEEF library. I will test it when I get the time, but looking at the code and the doc., I think that SLEEF is less accurate. The error of my math functions rarely exceed 1 ULP. My pow function is less precise because rounding errors get amplified, but I am working on an improvement. My functions do not support denormal numbers, but treat them as zero in many cases because I have given higher priority to speed. The SVML library has excellent precision in my tests.