Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Concave Mirror
- % Determines how far in front of a mirror an image is located
- % Inputs and Variables
- focal = input('Focal Point\n');
- d = input('Distance from mirror\n');
- % Outputs and Equations
- v = 1/focal-1/d;
- v = 1/v;
- fprintf('The image is located: %.3e m',v)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement