how do i use ln function in c programming

This is a discussion on how do i use ln function in c programming within the C Programming forums, part of the General Programming Boards category; ok so im new to programming and im using the microsoft visual studio c++. i need to do the equation ...

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Question how do i use ln function in c programming

    ok so im new to programming and im using the microsoft visual studio c++.

    i need to do the equation t=(-R*C) * ln(1-VC/VS) however i have no idea how to include the ln function, i have included the cmath library in the header file and i've searched it and can't find how to include it in my programme.

    Any help would be appreciated

    Thanks
    Baronator

  2. #2
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    If you are using C++, pls post to C++ forum.

    The log() function returns the natural logarithm of x.

  3. #3
    Registered User jadaces's Avatar
    Join Date
    Jun 2010
    Posts
    18
    You have to make it yourself It's simple

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling C in Visual Studio 2005
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-16-2009, 04:25 AM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  3. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  4. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 07:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21