All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Algorithms
Just by hand, only by hand, nothing but by hand? (Posted on 2004-07-26) Difficulty: 4 of 5
Imagine you are living a lot of years ago, without calculators, slide rules, tables of logarithms, or any kind of tool but paper and pencil... how would you go about calculating log10 of 2 -- or of any other number?

By the way, if your solution required calculating powers, or if you just wanted to check your solution, how would you calculate 10 to the 0.30103... power, or any other?

See The Solution Submitted by Federico Kereki    
Rating: 4.1667 (6 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
A Very Primitive Method | Comment 1 of 7

10^(b1*(1/2)+b2*(1/4)+...)=[(10^(1/2))^b1]*[(10^(1/4))^b2]*... .
Hence we can take the square root of 10, the square root of the square root of 10,... and starting with the value 1, multiply or not by the 2^n-th root of 10 and test against the target of 2 or whatever other number <10 that we seek the log of. This will give the base 10 logarithm in binary. For the target of 2, sqrt(10) > 2, so b1=0; sqrt(sqrt(10)) < 2, so b2=1; [sqrt(sqrt(10)) ]*[sqrt(sqrt(sqrt(10)))] > 2, so b3=0; etc.

 

 


  Posted by Richard on 2004-07-26 13:49:47
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information