The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Floor of the log equation: s = (floor(log10(x))+1)*x - round((10^(floor(log10(x))+1)-10)/9)
Replies: 4   Last Post: May 22, 2013 11:09 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Carlos Nepomuceno

Posts: 3
Registered: 5/22/13
Re: Floor of the log equation: s = (floor(log10(x))+1)*x - round((10^(floor(log10(x))+1)-10)/9)
Posted: May 22, 2013 8:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

less than a minute (9:31 PM)
Thank you Jim! I ended up developing a search algorithm fro that like you've suggested.

Since I don't have log(x) I calculate x using log(s). If log(x(s)) < log(s) then I recalculate using log(x(s)) and keep doing that until both have the same value.

I didn't manage to prove it's correctness but it works! ;)

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.