diff options
Diffstat (limited to '215/CH2/EX2.2')
-rwxr-xr-x | 215/CH2/EX2.2/ex2_2.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/215/CH2/EX2.2/ex2_2.sce b/215/CH2/EX2.2/ex2_2.sce new file mode 100755 index 000000000..3f56789c4 --- /dev/null +++ b/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);
+
|