summaryrefslogtreecommitdiff
path: root/3020/CH12/EX12.6/ex12_6.sce
blob: 57248e7ec109495d4dfd53ce9dc243359886a44e (plain)
1
2
3
4
5
6
7
clc;
clear all;
P1 = 100; // Power injected into fiber in milliwatts
P0 = 40;// Power ejected into fiber in milliwatts
loss = 10*log10(P1/P0);
disp('dB',loss,'The loss is ')
// Slight variation in the answer as compared to book... Checked in calculator... Book's mistake