Advertisement
hiddenGem

Resolving Power of a Telescope

Jul 28th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.36 KB | None | 0 0
  1. %% Resolving Power of a Telescope
  2. % Determines the smallest diameter of the objective lens required to resolve and
  3. % object on the moon
  4.  
  5. % Inputs and Variables
  6. d = input('Earth to moon distance\n');
  7. r = input('Object on the moon\n');
  8. lambda = input('Wavelength\n');
  9.  
  10. % Outputs and Equations
  11. theta = 1.22*d*lambda/r;
  12. fprintf('The diameter: %.3e m\n', theta)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement