summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.24/Ex2_24.sce
blob: 979924e1194f253f2f4b18989d461afa6a1eff4e (plain)
1
2
3
4
5
6
7
8
9
//Example 2_4_1
clc();
clear;
//To calculate the wavelength of light
D=150                     //units in centimeters
d=0.03                    //units in centimeters
betaa=0.3                 //units in centimeters
lemda=((betaa*d)/D)*10^8
printf("Wavelength of the light is %.0f angstrom",lemda)