summaryrefslogtreecommitdiff
path: root/1757/CH14/EX14.2/EX14_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1757/CH14/EX14.2/EX14_2.sce')
-rwxr-xr-x1757/CH14/EX14.2/EX14_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1757/CH14/EX14.2/EX14_2.sce b/1757/CH14/EX14.2/EX14_2.sce
new file mode 100755
index 000000000..6177ca441
--- /dev/null
+++ b/1757/CH14/EX14.2/EX14_2.sce
@@ -0,0 +1,14 @@
+//Example14.2 // to determine the current drawn from the dual power supply
+clc;
+clear;
+close;
+V = 10 ; // V
+P = 500 ; // mW
+
+// we assume that each power supply provides half power supply to IC
+P1 = (P/2);
+
+// the total power dissipation of the IC
+// P1 = V*I ;
+I = P1/V ;
+disp('the total power dissipation of the IC is = '+string(I)+' mA ');