|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
EasyC and Math
My team has limited programming skills so we have so far made a decision to use EasyC Pro.
Understanding that many of you will recommend lookup tables, we are nonetheless trying to use trig functions such as tan in our code for the moment. I believe I need to add a math.h file to my easyc project, but I am unsure how to #include <math.h> to say, my initialize function block. I have installed both mplab and easyc on the same machine and the math.h file I have is from the C:\mcc\ directory. Any clues? |
|
#2
|
||||
|
||||
|
Re: EasyC and Math
Courtesy of Brad Miller and the great folks at WPI:
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Math functionality in EasyC? | scottmso | Programming | 7 | 16-02-2006 14:52 |
| A question for math and science people | FIRST JerseyKid | Math and Science | 9 | 05-05-2005 22:36 |
| Math.h and Functions and Variables | amateurrobotguy | Programming | 1 | 26-02-2005 03:19 |
| Math Problems and Teasers | Cipher X | Math and Science | 46 | 23-01-2004 08:55 |
| Math and Science | Earl of the CC | Math and Science | 2 | 22-01-2003 09:09 |