How to write y=ln(x) C programming

Status
Not open for further replies.

zenniz

Junior Member level 3
Joined
Mar 25, 2013
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Singapore
Activity points
1,497
How to write ln(x) C programming

I'm trying to write the Steinhart - Hart Equation formula 1 / T = A + B(Ln R ) + C(Ln R )3 in C language but i don't know the math function for Ln.

Anyone know?
 
Last edited:

Natural log is "log(x)", log to base 10 is "log10(x)" I think.

Keith
 

Natural log is "log(x)", log to base 10 is "log10(x)" I think.

Keith

if you are using the basic iostream library with
Code:
using namespace std;

log(x) should do for "ln(x)"
and
log10(x) should do for the base 10 log.

I hope that answered the question.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…