Results 1 to 4 of 4

Math Help - logarithm help

  1. #1
    Member
    Joined
    Nov 2006
    Posts
    136

    logarithm help

    i have this equation

    f = \frac{1-exp(-2s(1-x)}{1-exp(-2s)}*\frac{1}{x(1-x)}

    when computing high values of s i have problems as the exponential tends to very small numbers. Instead i want to take natural logs of this equation so i can avoid computing the exponentials

    how do i take logs such that the exponentials disappear
    Last edited by chogo; August 12th 2009 at 08:17 AM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Dec 2007
    From
    Ottawa, Canada
    Posts
    3,102
    Thanks
    68
    Quote Originally Posted by chogo View Post
    f = \frac{1-exp(-2s(1-x)}{1-exp(-2s)}*\frac{1}{x(1-x)}
    Your stuff is hard to follow; you're missing a bracket; top line:
    1 - [-2s(1 - x)]^k (k = exponent)
    Is that what you mean?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    -1
    e^(i*pi)'s Avatar
    Joined
    Feb 2009
    From
    West Midlands, England
    Posts
    3,053
    Thanks
    1
    Quote Originally Posted by chogo View Post
    i have this equation

    f = \frac{1-exp(-2s(1-x)}{1-exp(-2s)}*\frac{1}{x(1-x)}

    when computing high values of s i have problems as the exponential tends to very small numbers. Instead i want to take natural logs of this equation so i can avoid computing the exponentials

    how do i take logs such that the exponentials disappear
    Take it one step at a time and recall the following laws:

    log(ab) = log(a) + log(b)

    log(a/b) = log(a) - log(b)

    log(a^k) = k \, log(a)

    To start

    ln(f) = ln(\frac{1-exp(-2s(1-x))}{1-exp(-2s)}) + ln(\frac{1}{x(1-x)})

    = ln(1-e^{-2s(1-x)}) - ln(1-e^{-2s}) - ln(x) - ln(1-x)

    Note you can't simplify ln(1-x) because ln(a-b) \neq ln(a) - ln(b)
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Member
    Joined
    Nov 2006
    Posts
    136
    f = \frac{1-e^{(-2s(1-x))}}{1-e^{(-2s)}}*\frac{1}{x(1-x)}

    apologies wilmer this is the equation with brackets right

    thank you for taking the time to reply

    e^(i*pi) i understand the laws and how to expand such equations, my problem is that i need to rearrange the equations such that i do not end up with ln(1-e^{(x)})

    i am not sure if you understand what i mean. for very large values of s when i compute the above formula i end up with numerical overflow problems. That is why i need to remove the exponentials. But i cant see a way of rearranging this formula so as to remove the exponentials.

    can it be done? any substitutions you think i should try

    thank you for your help
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 3
    Last Post: July 18th 2011, 07:04 AM
  2. logarithm
    Posted in the Algebra Forum
    Replies: 3
    Last Post: July 17th 2010, 04:23 AM
  3. Logarithm #2
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: June 1st 2010, 05:29 AM
  4. Logarithm
    Posted in the Algebra Forum
    Replies: 6
    Last Post: September 17th 2009, 10:23 PM
  5. Logarithm
    Posted in the Algebra Forum
    Replies: 4
    Last Post: March 13th 2008, 10:05 AM

Search Tags


/mathhelpforum @mathhelpforum