Two grandkids Dorothy and Benjamin are sharing a telescope made by their grandpa, who used an old lens of spectacles as the objective. This objective lens has power of p diopter. Dorothy definitively watches a doghouse at distance d meters. Benjamin basically watches a birdhouse at distance b meters. After watching the doghouse, how much shift of the eyepiece in mm is necessary to watch the birdhouse? Please give a general solution, the test suite may be more extensive later.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers26
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52915 Solvers
-
Find the numeric mean of the prime numbers in a matrix.
9137 Solvers
-
Create One Large Eye of size N x N Quickly?
95 Solvers
-
Find out missing number from a vector of 9 elements
322 Solvers
-
43 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This could really benefit from a few more test cases.
Test cases have been added and solutions are rescored.
Thanks, Dyuman!