View Single Post
  #2   Spotlight this post!  
Unread 11-02-2006, 08:16
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Math functionality in EasyC?

Quote:
Originally Posted by scottmso
I'm trying to see if I can design a function to help calculate a trajectory for our robot. Does EasyC have the math libraries that I would need to do this such as sin, cos, and tan? The other programmers didn't want to learn C this year (even though they had the opportunity) and seem to want to use EasyC but I would personally rather program it in regular C (MPLAB) especially if I will need to use it for what I want to do. Thanks
You can get all the standard math libraries which are described in the Microchip C18 Users Guide. To do this and not get compiler errors you must include <math.h> which can be done from the "File inclusion" dialog on the Options menu. Make sure to include the <> as part of the file name.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute