Jun 11, 2013 #1 Z zenniz Junior Member level 3 Joined Mar 25, 2013 Messages 29 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location Singapore Visit site 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: Jun 11, 2013
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?
Jun 11, 2013 #2 keith1200rs Super Moderator Staff member Joined Oct 9, 2009 Messages 10,865 Helped 2,065 Reputation 4,130 Reaction score 1,597 Trophy points 1,403 Location Yorkshire, UK Visit site Activity points 57,270 Natural log is "log(x)", log to base 10 is "log10(x)" I think. Keith
Aug 4, 2013 #3 U umerhuzaifa Newbie level 6 Joined Feb 15, 2010 Messages 11 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location sargodha,pakistan Visit site Activity points 1,362 keith1200rs said: Natural log is "log(x)", log to base 10 is "log10(x)" I think. Keith Click to expand... 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.
keith1200rs said: Natural log is "log(x)", log to base 10 is "log10(x)" I think. Keith Click to expand... 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.