Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Power of the Sun
- % Determines the total power radiated by the sun
- % Inputs and Variables
- d = input('What is the distance?\n');
- I = input('What is the average intensity of radiation?\n');
- % Outputs and Equations
- P = 4*pi*d*d*I;
- fprintf('The total power is %.4e W', P)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement