summaryrefslogtreecommitdiff
path: root/3753/CH7/EX7.9/Ex7_9.sce
blob: f5bd39fb68c690ef727fb6b9f6b7097da4b25467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example number 7.9, Page number 7.16

clc;clear;close

// Variable declaration
d=1.18 // in m
theta=90*%pi/180 // in radian
lamda=1.540 // in m

// Calculations
n=(2*d*sin(theta))/lamda // unitless

// Result
printf("n = %0.2f",n)