Problem 449. Grandpa's telescope
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
Christian Schröder
on 6 Jan 2023
This could really benefit from a few more test cases.
Dyuman Joshi
on 7 Jan 2023
Test cases have been added and solutions are rescored.
Christian Schröder
on 7 Jan 2023
Thanks, Dyuman!
Solution Comments
Show commentsProblem Recent Solvers22
Suggested Problems
-
Remove all the words that end with "ain"
2298 Solvers
-
Sum all integers from 1 to 2^n
15320 Solvers
-
Back to basics 2 - Function Path
182 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
222 Solvers
-
347 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!