MathLib is probably a better option for one of two reasons:
1) one day... 3com might put these routines in rom.
(anyone from 3com know of anything like this?)
2) if you have many applications using the routines,
then if you declare them inside each program - they
each have their own instance of sin(), cos() etc.
it depends on your target. if you only want sin() and
cos() for example - maybe it is easier to use them inline.
but if you are redefining all the routines.. MathLib is
the way to go.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11
On Fri, 9 Apr 1999, Paul Fearn wrote:
> Is there any dynamic memory advantage in using
> the Mathlib.prc library versus including the
> applicable math functions in your Palm app?
>
> I currently have an application which uses
> a handful of functions from Mathlib, log()
> pow() and associated functions. I extracted
> them, rewrote bits of them, and included them
> in my app directly.
>
> Are these two methods equivalent in terms of
> dynamic memory use? It certainly saves a lot
> of space if and inconvenience if users don't
> have to load Mathlib.prc.
>
> Any comments would be appreciated.
> Thanks,
>
> Paul Fearn
> Memorial Sloan-Kettering Cancer Center
>
>