Is there any option that is not accompanied by a licensing agreement that seems to try to turn other parties' code into free software if it uses the math library? ----- Original Message ----- From: "Henk Jonas" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[email protected]> Sent: Friday, September 30, 2005 2:09 AM Subject: Re: How do I use Sine & Cosine in a 68k Application
> [EMAIL PROTECTED] wrote: > > > 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. > > > > As Jeff wrote, either you use MathLib which comes with a whole bunch of > float functions (like sin, cos, tan, sqrt) or (if speed is important) > you use your own lookup tables for sin and cos. There are more things > you can do to speed it up, but maybe you just want to have a sinus and > speed isn't an issue. Then look out for MathLib(.prc, .h) and use it. > > Regards > Henk > > -- > ------------------------------------------------------------------------- > Henk Jonas [EMAIL PROTECTED] > Palm OS ® certified developer > > Please contact me, if you need an off-site contract worker. > ------------------------------------------------------------------------- > > -- > 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/
