|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Math functionality in EasyC?
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
|
|
#2
|
|||
|
|||
|
Re: Math functionality in EasyC?
Quote:
|
|
#3
|
|||
|
|||
|
Re: Math functionality in EasyC?
Where should we place the math.h file?
|
|
#4
|
||||
|
||||
|
Re: Math functionality in EasyC?
in the file where you use the mathematical functions. #includes are only useful for the file you put them in
|
|
#5
|
|||
|
|||
|
Re: Math functionality in EasyC?
The math header file is already included in the compiler. All you need to do is go to the File Inclusion Window in the options menu, and type in:
' <math.h> ' Then you will have access to the functions provided by that header file, such as sin, cos, tan, etc. |
|
#6
|
|||
|
|||
|
Re: Math functionality in EasyC?
after I include the file I wiil be able to see it like that : #include <sdsdsd>
???? Or it will automaticlly put it in the main.h ? |
|
#7
|
||||
|
||||
|
Re: Math functionality in EasyC?
Quote:
|
|
#8
|
|||
|
|||
|
Re: Math functionality in EasyC?
Quote:
The only way to see it is to look at the "Project" tab on the left hand window. Then you can select Main.h and see the includes. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Math in careers | EricH | Career | 40 | 24-06-2008 21:45 |
| EasyC Wish List | dcbrown | Programming | 32 | 14-08-2006 09:24 |
| EasyC v2.0 is mandatory for FVC! | skimoose | FIRST Tech Challenge | 7 | 14-01-2006 18:37 |
| Kickoff easyC workshop integrated into EasyC help file | Dan Larochelle | Programming | 0 | 11-01-2006 06:12 |