summaryrefslogtreecommitdiff
path: root/1223/CH17/EX17.4/Ex17_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1223/CH17/EX17.4/Ex17_4.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1223/CH17/EX17.4/Ex17_4.sce')
-rwxr-xr-x1223/CH17/EX17.4/Ex17_4.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1223/CH17/EX17.4/Ex17_4.sce b/1223/CH17/EX17.4/Ex17_4.sce
new file mode 100755
index 000000000..9d1110fa6
--- /dev/null
+++ b/1223/CH17/EX17.4/Ex17_4.sce
@@ -0,0 +1,20 @@
+clear;
+clc;
+//Example 17.4
+Vx=-0.7;
+Vy=-0.7;
+iCxy=3.22;//(mA)
+iCR=0;
+i5=1.40;
+i1=1.40;
+Vor=-0.7;
+R4=1.500;
+Vnor=-1.4;
+V2=-5.2;
+R3=1.500;
+i3=(Vor-V2)/R3;
+printf('\ncurrent i3=%.2f mA\n',i3)
+i4=(Vnor-V2)/R4;
+printf('\ncurrent i4 =%.2fmA\',i4)
+P=(iCxy+iCR+i5+i1+i3+i4)*(0-V2);
+printf('\npower dissipation=%.2f mW\n',P)