That's exactly what I've done after I got stuck earlier with Mathlib. I searched this list and saw your similar response to someone else about FDLibM. So I went to the site and dl'd only the source I needed and got it working, sort of.
The problem is the __ieee754_atan2() function is returning wrong results. I have a hard time believing how something so foundational is wrong so I've got to assume I'm doing something wrong. But the interface is so simple I don't know how I could've screwed it up. It's simple, you just pass it 2 doubles and get 1 back. Here are some of my results : __ieee754_atan2(-4.0, 0.0) = -1.5707 rad = -90 degrees __ieee754_atan2(-1.0, -2.0) = -2.6416 rad = -150 degrees __ieee754_atan2(2.0, 1.0) = 2 rad = 115 degrees __ieee754_atan2(1.0, 1.0) = 1 rad = 57 degrees __ieee754_atan2(0.0, -4.0) = Pi rad = 180 degrees I don't know if there's a difference between __ieee754_atan2() and atan2(), but I'm still getting link errors trying to use atan2() so I'm still working on that. I've also submitted these test results to a sci.math newsgroups in case they can see some pattern in the problem. --- In [EMAIL PROTECTED], Ben Combee <[EMAIL PROTECTED]> wrote: > > The problem isn't technical, since source for MathLib is included, its > legal. MathLib is distributed under the Lesser GNU Public License, which > effectively limits its use to being shared library, unless your whole > program is being distributed under the GNU Public License. > > However, MathLib is derived from a completely free source code base from > Sun called FDLibM. You can get that source from www.netlib.org and add it > to your project if you just need a few functions. The author of MathLib > took this source, customized it for Palm OS and working in a shared > library, and released it under a new license. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
