Help need log base 4

This is a discussion on Help need log base 4 within the C Programming forums, part of the General Programming Boards category; I am making a program for my programming class and I dont know how to get log base 4. can ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    1

    Exclamation Help need log base 4

    I am making a program for my programming class and I dont know how to get log base 4. can anyone help me?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,308
    #include <math.h> and use log() or log10() with a little mathematics.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,806
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 10:42 PM
  2. base 2 log of X
    By Mario F. in forum C++ Programming
    Replies: 8
    Last Post: 06-26-2007, 10:21 AM
  3. is there a log base 2 function?
    By qubit67 in forum C Programming
    Replies: 3
    Last Post: 05-02-2007, 02:08 AM
  4. Calculate log base e by recursion function.
    By alice in forum C Programming
    Replies: 0
    Last Post: 04-24-2004, 12:51 AM
  5. How to change number data from base 256 to base 16?
    By ooosawaddee3 in forum C++ Programming
    Replies: 2
    Last Post: 11-05-2002, 12:19 AM

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