blob: 9c2ecc234d5de7a3b85ee428de542585bf9975ae (
plain)
1
2
3
4
5
6
7
8
|
//Example 2_18
clc();
clear;
//To find the wavelength of the light
theta=15 //units in degrees
a=2.5*10^-6 //units in meters
lemda=((a*%pi*sin(theta*%pi/180))/(1.43*%pi))*10^10
printf("The wavelength of light is %.0f angstrom",lemda)
|