summaryrefslogtreecommitdiff
path: root/343/CH1/EX1.59/ex_59.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /343/CH1/EX1.59/ex_59.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 '343/CH1/EX1.59/ex_59.sce')
-rwxr-xr-x343/CH1/EX1.59/ex_59.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/343/CH1/EX1.59/ex_59.sce b/343/CH1/EX1.59/ex_59.sce
new file mode 100755
index 000000000..fce65690a
--- /dev/null
+++ b/343/CH1/EX1.59/ex_59.sce
@@ -0,0 +1,14 @@
+V1=50; //Assigning values to parameters
+V2=36;
+R1=5;
+R2=20;
+R3=10;
+I1=4;
+R4=(R2*R3)/(R2+R3);
+R5=R4+R1;
+I5a=V1/R5; //Considering only 50V source
+I5b=I1*(R4/(R4+R1)); //Considering only 4A current source
+I2=V2/R3; //Converting 36V voltage source to 3.6A current source using source transformation
+I5c=I2*(R4/(R4+R1)); //Considering only 3.6A current source
+I=(I5b+I5c)-I5a; //Adding the currents algebraically
+disp("Amperes",I,"Current through 5 Ohm resistor using Superposition principle"); \ No newline at end of file