summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.7/Ex5_7.sce
blob: d01454140319b457baaa0e7ede31d0852ecb23c5 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 5_7
clc();
clear;
//To find the order of braggs equation 
d=1.181   //units in A
theta=90     //units in degrees
lamda=1.540
n=(2*d*sin(theta*%pi/180))/lamda

printf("The order of Braggs equation is %d",n)