Math.h

(1/3) > >>

jamilm9:
Hi,
I need the <Math.h> library for a project I'm working on. However, I can only find the ".h" part of the library and not the ".cpp"
I found this here:  http://www.nongnu.org/avr-libc/user-manual/math_8h.html#define-members
Does anyone know where I can find the full library? Thank you.

Coding Badly:

Seriously?  That link is literally three clicks away from the source code.

Why do you need the source code?  A ready-to-link library of everything in math.h is included with the Arduino IDE and the IDE automatically includes that library when it builds your sketch.

lloyddean:
A learning experience I would think!  I quite often look into system and, or, API header files.  And I recommend others do as well.

jamilm9:
I'm sorry if this question seems dumb but when I got to Sketch and Import, I can't find "Math" in there. Also, If I manually add "#include <math.h>" the math part doesn't turn yellow like in other includes. I hope I can show this in the pictures.

EDIT: The same thing happens even if the math.h is capitalized.

WizenedEE:
Quote from: jamilm9 on February 01, 2012, 01:21:22 am

I'm sorry if this question seems dumb but when I got to Sketch and Import, I can't find "Math" in there. Also, If I manually add "#include <math.h>" the math part doesn't turn yellow like in other includes. I hope I can show this in the pictures.

EDIT: The same thing happens even if the math.h is capitalized.


That's not a question. Is the fact that your source code doesn't change colors problematic?

The include menu only looks for files in the two "library" sections. It doesn't look in the system wide default locations like /usr/include and /usr/avr/include. Essentially the same for the color changing.

Navigation

[0] Message Index

[#] Next page