Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 11:09 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thank you Jim! I ended up developing a search algorithm for 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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.