Complex arg-trig functions

Stephen Montgomery-Smith stephen at missouri.edu
Wed Sep 12 02:45:01 UTC 2012


On 09/09/2012 08:05 PM, Stephen Montgomery-Smith wrote:
> On 09/06/2012 11:32 AM, Stephen Montgomery-Smith wrote:
>
>> In the days or weeks to come, I might go over all these kinds of
>> conditions over again.  The paper by Hull et al, and the code used by
>> boost, is written in such a way that the code for float is the same as
>> the code for double.  My code was designed just enough to work, whereas
>> they put more thought into it.
>
> I am doing this right now.  The code I currently have on the web page is
> non-functional.

1.  I think I have it fixed now.  My code is much closer to the original 
intent of the algorithm used by Hull et al.  In particular, the float 
version is just as easy as the double version.

2.  The long and float version now are created from the double version 
by simple perl scripts (also put on my web page).

3.  I used the "return (cpack(x+0.0L+(y+0), x+0.0L+(y+0)))" 
construction, but I still don't know why.  I added a comment basically 
saying I did this because Bruce told me to.

Stephen



More information about the freebsd-numerics mailing list