Hi Fred,
Looks like
APPROX(LOG(15.51499, 10), 20) = 1.1907515000009954495
is the best solution to your problem for any x in [10,20]. At least that's
what my attached DERIVE-program says.
Cheers,
Johann
At 03:51 30.12.2006, you wrote:
>On Fri, 29 Dec 2006 09:23:57 -0700, Jim FitzSimons wrote:
>
> >You have to explain the problem better.
> >I do not understand what you are asking.
>
>How do I find the 7 digit number in the range of 10 to 20
>that has a base-10 log that is closest to the midpoint
>between two 7 digit numbers?
>
>That is, I want the log(x,10) to be of the form:
> 1.abcdef_4999...
>or
> 1.ghijkl_5000...
>
>I do not care what values a,b,c,d,e,f,g,h,i,j,k, or l have.
>But, I do want, mod( 10^6 * log(x,10) ) to be as close as
>possible to 0.5 with x being a 7 digit number.
>
>For example,
> log(10.00706,10) is 1.000306_5037...
> log(10.00918,10) is 1.000398_4994...
>
>Some more examples:
> log(10.00418,10) is 1.000181_4971...
> log(10.00653,10) is 1.000283_5017...
>---
>Fred J. Tydeman Tydeman Consulting
>[log in to unmask] Testing, numerics, programming
>+1 (775) 358-9748 Vice-chair of J11 (ANSI "C")
>Sample C99+FPCE tests: http://www.tybor.com
>Savers sleep well, investors eat well, spenders work forever.
|