summaryrefslogtreecommitdiff
path: root/3834/CH9/EX9.1.1/Ex9_1_1.sce
blob: 2c00fcd887745b086618b4faefb5ae85110c4d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Fiber Optics Communication Technology, by Djafer K. Mynbaev and Lovell L.scheiner
//Windows 8
//Scilab version- 6.0.0
//Example 9.1.1
clc;
clear ;
//given

lambdap=850;//Peak wavelength in nm
n=0.01;//quantum efficiency is 1%
Ep=1248/lambdap;//energy of photon in eV
I=50;//current supposed to be in mA

P=n*Ep*I;
mprintf("Power radiated by LED = %.3f mW",P);//answer vary due to rounding