Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Underwater Sunset
- % Determines the angle with respect to the vertical that a diver under the
- % water can see the sunset
- % Inputs and Variables
- n = input('Index of refraction\n');
- % Outputs and Equations
- theta = asin(1/n);
- fprintf('The angle is: %.3e rad', theta)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement