summaryrefslogtreecommitdiff
path: root/374/CH5/EX5.2.a/52a.sci
blob: 1518fabd38b90c311728b367fe474cb2432c61b2 (plain)
1
2
3
4
5
6
7
8
9
//chapter 5 example 2//
clc
clear
//band gap energy=Eg,total efficiency=nT,voltage applied=V,external efficiency=ne//
Eg=1.43;//in ev//
V=2.5;//in volts//
nT=0.20;
ne=((nT*Eg)/V)*100;//external efficiency//
printf("\n external efficiency=%f percent\n",ne)