Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top