Go to Post While science and technology can solve difficult problems, it is people and interaction that make it all work. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2007, 21:41
Wynlyndd Wynlyndd is offline
Registered User
FRC #1865
 
Join Date: Jan 2006
Location: Houston
Posts: 4
Wynlyndd is an unknown quantity at this point
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   Spotlight this post!  
Unread 25-01-2007, 21:48
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 10:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi