Advertisement
hiddenGem

Industrial Laser

Jul 25th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.53 KB | None | 0 0
  1. %% Industrial Laser
  2. % Determines the RMS value of the electric and magnetic field
  3. % of an industrial laser that is used to burn a hole through a piece of
  4. % metal
  5.  
  6. % Constants
  7. E = 8.85*10^-12         %[C^2/N*m^2] Permittivity Constant
  8. c = 3.00*10^8           %[m/s] Speed of Light
  9. % Inputs and Variables
  10. Save = input('What is the average intensity of light?\n');
  11.  
  12. % Outputs and Equations
  13. Erms = sqrt(Save/(E*c));
  14. Brms = Erms/c;
  15. fprintf('The RMS values of the electric and magnetic field are :/n%.4e N/C and %.4e T',Erms, Brms)
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement