summaryrefslogtreecommitdiff
path: root/1430/CH2/EX2.7
diff options
context:
space:
mode:
Diffstat (limited to '1430/CH2/EX2.7')
-rw-r--r--1430/CH2/EX2.7/exa2_7.sce14
-rw-r--r--1430/CH2/EX2.7/exa2_7.txt10
2 files changed, 24 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)=")
diff --git a/1430/CH2/EX2.7/exa2_7.txt b/1430/CH2/EX2.7/exa2_7.txt
new file mode 100644
index 000000000..db27567bb
--- /dev/null
+++ b/1430/CH2/EX2.7/exa2_7.txt
@@ -0,0 +1,10 @@
+
+
+-->exec('C:\Users\sangeet\Documents\Scilab\Circuits\Chapter 2\exa2.7.sce', -1)
+
+ Call the function VCVS with input argument v_s
+
+ Current through 10-ohm resistance(in Amps)=
+
+ 1.
+