summaryrefslogtreecommitdiff
path: root/3543/CH3/EX3.17/Ex3_17.sce
blob: 48e3c6aadb40bae693ce58eaa4267c153f4f44b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Example 3.17 
//Computation of conversion efficiency 
// Page no 484

clc;
clear;

//Given data
i=10*10^-6;            // Device current
p=5;                  // Electrical power
op=50 *10^-6;         // Optical power
ip=5*10*10^-3;        // Input power

//Conversion efficiency
c=op/ip*100;              
//Display result on command window
printf("\n Conversion efficiency (in percentage)= %0.1f  ",c);