blob: c8e68adebb7e018a8a72860a64f5499730760c85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Example 5.6, Page Number 225
//Efficiency of He-Ne Laser
clc;
i=1*(10**-2) //Current in Ampere
V=2500 //in volts
P=5*(10**-3) //Optical Output in Watt
E=P/(i*V) //E is the overall Power Efficiency
E=E*100
mprintf("The Overall Power Efficiency is %0.2f percent ",E);
|