Re: [pure-lang-users] C macros
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-08-25 21:05:33
|
Eddie Rucker wrote: > I noticed all of the math functions in math.pure are implemented in GSL. Then you don't need these in your GSL wrapper. Of course math.pure does its own complex numbers type for convenience (those x+:y and r<:y thingies), so you will have to marshall these in your GSL interface to whatever data structure GSL uses for complex numbers. > "For multiple-valued functions the branch cuts have been chosen to > follow the conventions of Abramowitz and Stegun in the Handbook of > Mathematical Functions. The functions return principal values which are > the same as those in GNU Calc, which in turn are the same as those in > Common Lisp, The Language (Second Edition)1 and the HP-28/48 series of > calculators." Told 'ya. :) As I pointed out earlier it's no accident that these calculators are pretty much the "gold standard" when it comes to numeric algorithms on portable devices. Kahan was hired by HP to design the numeric algorithms for the HP "Voyager" calculators (HP-10C et al), which were then later ported to the Saturn-based calcs (HP 28, 48/49/50). The HP 50G, which I used to test against math.pure, still uses those algorithms (although it emulates the Saturn cpu on an ARM processor and is thus much faster than the 48 or the 49G). It's a pity that HP's calculator division (like so many things at HP) went south during Carly Fiorina's reign. But of course with a laptop not costing much more than a high-end scientific calc these days, I guess I can be happy that they still produce something like the 50G at all. Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |