![]() |
28/48 used to validate scientific library - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: 28/48 used to validate scientific library (/thread-152055.html) |
28/48 used to validate scientific library - Egan Ford - 06-23-2009 Last night I was helping an HPGCC user build GSL (GNU Scientific Library) for the 50g. After I got it compiled I needed to create a simple test case and opted for a complex square root. When I read the documentation (http://www.gnu.org/software/gsl/manual/html_node/Complex-Numbers.html) this gem was present: Quote:The 28/48 was not the only source of validation, but interesting that it is mentioned and possibly implied as a trusted source. Re: 28/48 used to validate scientific library - Thomas Okken - 06-23-2009 That's interesting. When I implemented the complex functions in Free42, I simply went with whichever branch cut was easiest to implement, and there may well be discrepancies between that and what the real HP-42S does. I wonder if its complex functions have the same behavior as the 28/48 series?
- Thomas
Re: 28/48 used to validate scientific library - hugh steers - 06-23-2009 The complex numbers in Reckon and the uWatch take the branch cuts that agree with the hp15c (presumably the same as the 48). the 15c manual claims these cuts were chosen so as to make the trigs and their inverses composed return the same original values.
Re: 28/48 used to validate scientific library - Nigel J Dowrick - 06-24-2009 Same with CasioRPN (another RPN calculator for the Casio FX-9860 series). I'm lucky enough to have a paper copy of the HP-42 manual; I checked it against the HP-28 manual on the museum disk and the cuts / branch points chosen appeared identical in each. From a programming point of view I don't recall that they were all the most natural; it's unlikely that simply choosing cuts / branch points as one goes along would lead to the same results.
Nigel
Re: 28/48 used to validate scientific library - Thomas Okken - 06-24-2009 Nigel, are you referring to chapter 6 of the HP-42S manual? Could you point me to any specific examples in the manual that would give a clue as to which branch cuts the 42S uses?
- Thomas
Re: 28/48 used to validate scientific library - Nigel J Dowrick - 06-24-2009 My memory must be going! You are quite correct - although I do own the HP-42S manual (and the calculator), the information about branch points / cuts is not in there. I actually used the information in the HP-15C "Advanced Functions" manual. Comparing this with my HP-42S showed that the same branch points / cuts were used by both calculators, and also by the HP-28S. Sorry for any confusion.
Nigel
Re: 28/48 used to validate scientific library - Thomas Okken - 06-24-2009 Thanks for the information! I don't have any paper manuals for the 15C but the PDF versions on the Museum DVD will do. :-)
- Thomas
|