summaryrefslogtreecommitdiff
path: root/3710/CH8/EX8.9/Ex8_9.sce
blob: bf84d1960e871292d5c444e3eabf1f059c751f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 8.9, Page Number 387
//The Function fpround(dependency) is used to round a floating point number x to n decimal places
clc;

V=2

//From equation 8.29a
w=0.65+(1.619*(V**(-1.5)))+(2.879*(V**-6))
w=fpround(w,3)
mprintf("The Mode Field Irradiance Diameter is:%.3f",w)

//The answer provided in the textbook is wrong