diff options
Diffstat (limited to 'Working_Examples/215/CH2/EX2.2/ex2_2.sce')
-rwxr-xr-x | Working_Examples/215/CH2/EX2.2/ex2_2.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Working_Examples/215/CH2/EX2.2/ex2_2.sce b/Working_Examples/215/CH2/EX2.2/ex2_2.sce new file mode 100755 index 0000000..3f56789 --- /dev/null +++ b/Working_Examples/215/CH2/EX2.2/ex2_2.sce @@ -0,0 +1,12 @@ +//Example 2.2
+//Calculate vL
+disp("Given")
+disp("v2=3V")
+v2=3;
+//From figure 2.19b
+disp("Considering the right hand part of the circuit ")
+disp("vL=5v2")
+vL=5*v2;
+disp("On substitution")
+printf("vL=%dV\n",vL);
+
|