diff options
Diffstat (limited to '343/CH1/EX1.57/ex_57.sce')
-rwxr-xr-x | 343/CH1/EX1.57/ex_57.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/343/CH1/EX1.57/ex_57.sce b/343/CH1/EX1.57/ex_57.sce new file mode 100755 index 000000000..81b23ba83 --- /dev/null +++ b/343/CH1/EX1.57/ex_57.sce @@ -0,0 +1,12 @@ +V1=10; //Assigning values to parameters
+R1=10;
+R2=1;
+V2=8;
+R3=8;
+V3=12;
+R4=20;
+I20=V1/(R2+R4); // Considering only 10V source
+Ia20=V3/(R2+R4); // Considering only 12V source
+Ib20=V2/(R2+R4); // Considering only 8V source
+I=Ia20+Ib20-I20; // Adding the currents algebraically
+disp("Amperes",I,"Current through 20 Ohm resistor using Superposition principle")
\ No newline at end of file |