summaryrefslogtreecommitdiff
path: root/1430/CH2/EX2.12/exa2_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '1430/CH2/EX2.12/exa2_12.sce')
-rw-r--r--1430/CH2/EX2.12/exa2_12.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1430/CH2/EX2.12/exa2_12.sce b/1430/CH2/EX2.12/exa2_12.sce
new file mode 100644
index 000000000..d7b39c5f8
--- /dev/null
+++ b/1430/CH2/EX2.12/exa2_12.sce
@@ -0,0 +1,10 @@
+// Example 2.12
+// Thevenin Parameter from a v-i Curve
+// From v-i curve obtained from Pspice simulation we get two equations,
+x=[1 0.981;1 0.128]\[-0.491;-6.395]//Matrix Method for solving simultaneous equations
+v_oc=x(1,1);// Open-Circuit Voltage
+R_t=x(2,1);// Thevinin Resistance
+i_sc=v_oc/R_t;// Short Circuit Current
+disp(v_oc,"Open Circuit Voltage(in Volts)=")
+disp(i_sc,"Short Circuit Current(in Amps)=")
+disp(R_t,"Thevenin Resistance(in Ohms)=")