summaryrefslogtreecommitdiff
path: root/401/CH7/EX7.5/Example7_5.sce
blob: 19ad4eba465b5064fb2f6a96827622b79cabac4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Example 7.5
//Program to determine the overall power conversion efficiency

clear;
clc ;
close ;

//Given data
Pc=190*10^(-6);       //Watts - INPUT OPTICAL POWER
I=25*10^(-3);         //A - FORWARD CURRENT
V=1.5;                //V - FORWARD VOLTAGE

//Overall power conversion efficiency
P=I*V;
eeta_pc=Pc/P;

//Displaying the Result in Command Window
printf("\n\n\t Overall power conversion efficiency is %0.1f percent.",eeta_pc*100);