Thread: Using the log properties- math

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    39

    Using the log properties- math

    Kind of an offshoot of my previous post but this has to do with logarithmic properties

    Change of base:

    logbX = logaX/logaB

    and

    logb(X/Y ) = logbX - logbY

    and

    X/Y = X(1/Y) exponents


    here is the formula I have:
    logc (b / a) where c = 3, b = 88 , a = 3

    how can I write b/a: Is it actually

    logc (logcb - logxa) or

    logc (X(1/Y)

    confused on how to proceed with the b/c- do I simpify that first then convert from base 5 to base 10

    Insight would be appreciated...

  2. #2
    HelpingYouHelpUsHelpUsAll
    Join Date
    Dec 2007
    Location
    In your nightmares
    Posts
    223
    How I learnt change of base: log of the number / log of the base. So to use a common base, to save me writing an extra 2 letters, and because my calculator can do it, I use natural log (ln). E.g.
    with b = 88 , a = 3:
    log3 (88) = ln (88) / ln (3) ~= 4.08

    Or you could get a calculator to do it all for you...
    long time no C; //seige
    You miss 100% of the people you don't C;
    Code:
    if (language != LANG_C && language != LANG_CPP)
        drown(language);

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by ninety3gd View Post
    Kind of an offshoot of my previous post but this has to do with logarithmic properties

    Change of base:

    logbX = logaX/logaB

    and

    logb(X/Y ) = logbX - logbY

    and

    X/Y = X(1/Y) exponents


    here is the formula I have:
    logc (b / a) where c = 3, b = 88 , a = 3

    how can I write b/a: Is it actually

    logc (logcb - logxa) or

    logc (X(1/Y)

    confused on how to proceed with the b/c- do I simpify that first then convert from base 5 to base 10

    Insight would be appreciated...
    You don't have 5, or 10 in the problem. Do you want to do change of base, or the quotient rule? The quotient rule would say logc(b/a) = logc b - logc a. The change of base rule just allows you to find a numerical value with a calculator, should it be necessary in some way.

  4. #4
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    I wrote a program to convert a number in one base into another, it revolved around the modulus operator, I'll do some Googling and see if I can learn anything that can help you
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  5. #5
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by ninety3gd View Post
    how can I write b/a: Is it actually

    logc (logcb - logxa) or

    logc (X(1/Y)
    logc(b/a) = logcb - logca, not logc(logcb - logca)
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    39
    figured out my problem- thanks for all of the insight

  7. #7
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    what was the solution?
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C math log() function misbehaves...
    By csonx_p in forum C Programming
    Replies: 13
    Last Post: 05-23-2008, 05:50 AM
  2. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  3. how to use operator+() in this code?
    By barlas in forum C++ Programming
    Replies: 10
    Last Post: 07-09-2005, 07:22 PM
  4. fprintf works in one function but not in the other.
    By smegly in forum C Programming
    Replies: 11
    Last Post: 05-25-2004, 03:30 PM
  5. My log file player; Hit the brick wall
    By Twig in forum C Programming
    Replies: 6
    Last Post: 07-27-2002, 05:35 PM