summaryrefslogtreecommitdiff
path: root/2075/CH4/EX4.5/pe4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '2075/CH4/EX4.5/pe4_5.sce')
-rwxr-xr-x2075/CH4/EX4.5/pe4_5.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2075/CH4/EX4.5/pe4_5.sce b/2075/CH4/EX4.5/pe4_5.sce
new file mode 100755
index 000000000..bbc1795ec
--- /dev/null
+++ b/2075/CH4/EX4.5/pe4_5.sce
@@ -0,0 +1,19 @@
+//example 4.5
+clc; funcprot(0);
+// Initialization of Variable
+V=12;
+Vp=5;
+R=10;
+pi=3.1428;
+//calculation
+Ip=Vp/R;
+Il=Ip/2^.5;
+Pl=(Vp*Ip)/2;
+disp(Pl,"power delivered in watt")
+Id=Ip/pi;
+disp(Id*1000,"dc supply current in mA")
+Pt=2*V*Ip/pi;
+disp(Pt,"total power in W")
+Pic=Pt-Pl;
+disp(Pic,"IC power in W")
+clear()