Pages: [1]   Go Down
Author Topic: Add log function in the reference.  (Read 871 times)
0 Members and 1 Guest are viewing this topic.
Central MN, USA
Offline Offline
Tesla Member
***
Karma: 73
Posts: 7188
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 5570
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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)...

 smiley
Logged

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

Forum Administrator
MMX
Offline Offline
Edison Member
*****
Karma: 37
Posts: 1139
hallo kompis
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

/d
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: