[34S] Time diff. STO.00 vs. STO 00 ?
03-13-2014, 09:53 PM
Post: #19
 Paul Dale Senior Member Posts: 1,733 Joined: Dec 2013
RE: [34S] Time diff. STO.00 vs. STO 00 ?
(03-13-2014 09:20 PM)Sikuq Wrote:  However I always wondered just how the 34S actually calculates say a square root or the Gamma function. Does it use a power series, other basic functions, or say Fourier? And did you get those functions from somewhere else and just compiled them in there?

Square root, the four arithmetic operations, natural logarithm and exponential are included in the decNumber library we used. I replaced the natural logarithm (twice) because the supplied version was unacceptably slow, I'm still not entirely happy with its performance. For reference, square root uses Newton's method after an initial guess -- this is a fairly standard technique.

Pretty much everything else I wrote after finding suitable standard algorithms or in a couple of cases doing my own expansions. As an example of the former, the gamma function uses a rapidly converging series -- unfortunately I don't remember the source I used, but I will have the original paper stored away somewhere. I ended up purchasing a not-insignificant number of books about numeric analysis and transcendental function implementation and spent lots of time searching the Internet for suitable algorithms.

If you look in doc/formulas there are some erratic notes about what I used where and doc/distribution-formulas contains a longish exchange between Dieter and others giving incremental improvements to the statistical distributions. These documents were primarily for my use and aren't well organised but I figured some record was better than none.

Finally, a few of the functions have been examined in detail by members of this forum and sometimes, changes and improvements have been added. For example, Dieter's work on getting the Lambert W function accurate.

- Pauli
 « Next Oldest | Next Newest »

 Messages In This Thread [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 12:55 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Paul Dale - 03-12-2014, 01:47 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Paul Dale - 03-12-2014, 01:49 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 02:25 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Paul Dale - 03-12-2014, 02:46 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 03:10 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - walter b - 03-12-2014, 06:12 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Marcus von Cube - 03-12-2014, 10:14 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 11:17 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Marcus von Cube - 03-13-2014, 06:26 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-13-2014, 09:20 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Paul Dale - 03-13-2014 09:53 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-14-2014, 03:28 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Paul Dale - 03-14-2014, 07:18 AM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-14-2014, 05:01 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Thomas Klemm - 03-14-2014, 05:34 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Thomas Klemm - 03-14-2014, 06:16 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-14-2014, 09:09 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Thomas Klemm - 03-17-2014, 07:38 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-17-2014, 08:17 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-17-2014, 05:12 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Thomas Klemm - 03-17-2014, 06:14 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-17-2014, 07:08 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - walter b - 03-13-2014, 09:54 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 01:50 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - walter b - 03-12-2014, 02:39 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 02:47 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - walter b - 03-12-2014, 03:10 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 04:19 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - walter b - 03-12-2014, 04:26 PM RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-12-2014, 08:33 PM

User(s) browsing this thread: 1 Guest(s)