> No, I was under the impression (from reading other > threads related to this topic) that you didn't have to > install mathlib.prc, that you could just include what > you want.
user must install mathlib.prc > I'm developing an app that I eventually want to sell > and distribute, and I don't want to have to tell my > users that they have to install Mathlib in addition to > my app. well, if mathlib.prc is < 64k, you *could* look for it, and, when finding it fails - install a copy of it using DmCreateDatabaseFromImage :) > The main thing I need (besides some decent, simple > rounding and sqrt functions) is the ability to find an > angle from a pair of coordinates, e.g. going from > (0,0) to (2,2) is a 45 degree bearing. After doing a > fair amount of searching on this I've found I want the > arctan, or atan2() function. However, this function > returns radian which I then have to convert to > degrees. you can find these routines yourself using simple series analysis. any good math book will give you a simply way to implement these functions. > In the meantime while I'm trying to get Mathlib > working, I've been using the fdlibm.h and just > including the 2-3 c files I need from there. But the > atan2() function is returning strange values. mathlib.[ch] are only there to allow you access to the mathlib.prc functionality. dont expect to actually include mathlib itself just because you use the .c and .h files. --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
