|
No Trig?
I wanted to use some trig functions in my robot program so I included math.h just like every other c program I ever wrote. To my surprise every trig function I could think of (sin, cos, tan, asin, etc...) was unrecognized by the complier.
I looked closer at the math.h file in the "mcc18/h" folder. It contained a definition for HUGE_VAL but nothing else. It talked about other functions but never defined them.
Do I need to include another file? Or where can I get a math.h file with trig functions defined? Please help.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
 Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
|