diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1430/CH2/EX2.7/exa2_7.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1430/CH2/EX2.7/exa2_7.sce')
-rw-r--r-- | 1430/CH2/EX2.7/exa2_7.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1430/CH2/EX2.7/exa2_7.sce b/1430/CH2/EX2.7/exa2_7.sce new file mode 100644 index 000000000..0e73a2edd --- /dev/null +++ b/1430/CH2/EX2.7/exa2_7.sce @@ -0,0 +1,14 @@ +// Example 2.7
+// Analysis with a VCVS(Voltage controlled Voltage Source)
+// From Figure 2.16(a)
+disp("Call the function VCVS with input argument v_s")
+function[i_1]=VCVS(v_s)
+// Applying KVL on Right-hand loop we get v_2=3*i_1
+//Applying KCL at Upper node yields, i=1.5i_1
+// Using KVL in Left Loop
+i_1=v_s/(4*(1.5)+3);// v_s=4*i+v_2
+endfunction
+// For Example let us assume the value of v_s= 9 volts
+V_s=9;
+I_1=VCVS(V_s);
+disp(I_1,"Current through 10-ohm resistance(in Amps)=")
|