Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Tired Physics Professor Reading Fine Print
- % Determines the best focal length of lens
- % Input and Variables
- d = input('Distance from glasswear\n');
- v = input('Ideal distance from glasswear\n');
- % Outputs and Equations
- f = 1/v-1/d;
- f = 1/f;
- fprintf('The focal point should be: %.3e m', f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement