MathLib is probably the most common way to do trig.  Link is below.  You
can get it with source code and just snag the functions that you need and
incorporate them in your program, or the most common way is to require your
users to install MathLib.prc along with your program, then your program can
use the functions. Comes with documentation.

http://www.radiks.net/~rhuebner/mathlib.html

/js
In your message regarding How do I use Sine & Cosine in a 68k Application
dated Thu, 29 Sep 2005 19:50:46 -0000, [EMAIL PROTECTED] said
that ...

>  I'm new to all of this.
>  
>  I'm trying to write a 68k application, using PODS, that is heavily into trig.
>  
>  I need to use 'sin' & 'cos' but if I include "math.h" I get an error stating
"conflict in types for built-in function 'cos'",
>  and the same message for 'sin' & 'sqrt'.
>  
>  If I don't include "math.h" I get the error "undefined reference for
built-in function 'sin'.
>  
>  I didn't think that 'sin' & 'cos' were built-in functions in c.
>  
>  If these functions are built-in, how do I reference them?
>  
>  Please help,
>  
>  Chris.
>  
>  -- 
>  For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>  
>  
>  



-- 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to