please could you tell me if there is (ln) function in the math.h header file (if yes give me the function please)
This is a discussion on there is (ln) in the math.h within the C Programming forums, part of the General Programming Boards category; please could you tell me if there is (ln) function in the math.h header file (if yes give me the ...
please could you tell me if there is (ln) function in the math.h header file (if yes give me the function please)
Yes, it's called log() (not log10()): http://cppreference.com/stdmath/index.html
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
thanks a lot
Did you try opening the header? The function you want is called log.
Too late . . .
If you're expecting "ln" then searching math.h won't help much. But it was really easy to find -- I went to cppreference.com and clicked on C++ Standard Math or whatever it's called.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
thanks a lot