Go Down

Topic: Add log function in the reference. (Read 899 times) previous topic - next topic

liudr

The log function seems to be missing from the arduino reference page but if you use log, it compiles just fine meaning it should be on the reference page. Could the Arduino folks add this to the reference? My students are trying to use thermistors and they need this to calculate for temperature. So some of them pointed out arduino didn't have log on the reference page. I told them to include math.h but it turned out to be unnecessary.

cr0sh


The log function seems to be missing from the arduino reference page but if you use log, it compiles just fine meaning it should be on the reference page. Could the Arduino folks add this to the reference? My students are trying to use thermistors and they need this to calculate for temperature. So some of them pointed out arduino didn't have log on the reference page. I told them to include math.h but it turned out to be unnecessary.



It's part of the AVR standard C library: http://www.nongnu.org/avr-libc/

Guess how many other functions are "missing"...

You would do better to point your students at this resource, rather than having the Arduino reference updated (if any update is needed, it should be one that points to the AVR libc link)...

:)
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

David Cuartielles

cr0sh ... good point, I will pass your comment to Mellis, who packages the documentation into the IDE

/d

mellis

The Arduino reference page already points to avr-libc, at the bottom of the right hand column.

Go Up