I've only gone as far as 1 semester of college
Calculus, so writing them myself isn't an option. I
have no idea what 'series analysis' means.

So if I want to include the mathlib stuff and have my
user only install 1 app, how do I include mathlib in
my project? In the past I've skimmed by topics on
multi-segments with CW, but it sounds like that's
where I'm at if I want to do this.

BTW, installing the mathlib.prc on the Emulator first
worked. I'm still getting small variation errors. e.g
the result should be 30 degrees but I'm getting 27 or
it should be 60 and I'm getting 63. atan2() returns
rads, so I'm converting them to degrees and then
rounding that result to an integer. Is there a better
way to do this:

double radAngle,difx,dify ;
int degAngle;

radAngle = atan2(dify,difx);
degAngle = round(radAngle*(180.0/(22.0/7.0)));

I'm assuming there's at least a Pi constant somewhere
I'm missing, but I've searched the Palm Reference and
didn't find it.

Brian

--- In [EMAIL PROTECTED], "Aaron Ardiri"
<[EMAIL PROTECTED]> wrote:
> > 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/

__________________________________________________
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/

Reply via email to