diff options
Diffstat (limited to '2231/CH1/EX1.19')
-rwxr-xr-x | 2231/CH1/EX1.19/Ex_1_19.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2231/CH1/EX1.19/Ex_1_19.sce b/2231/CH1/EX1.19/Ex_1_19.sce new file mode 100755 index 000000000..944fe9f52 --- /dev/null +++ b/2231/CH1/EX1.19/Ex_1_19.sce @@ -0,0 +1,16 @@ +//Example 1_19
+clc;
+clear;close;
+
+//Given data
+Vs=12;//V
+P=0.3;//W
+Rs=100;//ohm//as slope is -100V/A
+//Vs=Vg+Ig*Rg leads to Rs*Ig^2-Vs*Ig+P=0
+X=[Rs -Vs P];//polynomial
+Ig=roots(X);//A
+Ig=Ig(2);//A(taking one value)
+disp(Rs,"Source resistance, Rs in ohm ");
+disp(Ig*1000,"Trigger current in mA ");
+Vg=P/Ig;//V
+disp(Vg,"Voltage Vg in V ");
|