Results 1 to 2 of 2

Thread: Logarithm problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Logarithm problem

    How do you solve equations like:
    ln (x) = ax
    where a is any positive whole number

  2. #2
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    You can't do it algebraically so you'd have to use the Newton-Rhapson method which goes something like this:

    f(x) = ln(x) - ax
    f'(x) = 1/x - a

    xr+1 = xr - (ln(xr) - axr)/(1/xr - a)

    Depending on the value of a, the equation f(x)=0 will have zero, one or two solutions. There's no foolproof way to find them other than sticking random numbers for xr into that equation to find the better approximation xr+1 until xr+1 converges to a specific value.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width