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 /3754/CH25/EX25.1/25_1.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 '3754/CH25/EX25.1/25_1.sce')
-rw-r--r-- | 3754/CH25/EX25.1/25_1.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/3754/CH25/EX25.1/25_1.sce b/3754/CH25/EX25.1/25_1.sce new file mode 100644 index 000000000..efd4df216 --- /dev/null +++ b/3754/CH25/EX25.1/25_1.sce @@ -0,0 +1,28 @@ +clear//
+
+//Variables
+
+R1 = 6.0 //Resistance (in ohm)
+R2 = 4.0 //Resistance (in ohm)
+R3 = 4.0 //Resistance (in ohm)
+
+//Calculation
+//Let i1 = 10 A and v2 = 10 V.
+i1 = 10.0 //Assumed current (in Ampere)
+v2 = 10.0 //Assumed voltage (in volts)
+//Parameters h11 and h21
+
+h11 = R1 + R2 * R3/(R2 + R3) //Input resistance looking from the input terminals (in ohm)
+i2 = -i1 / 2 //Current2 (in Ampere)
+h21 = i2/i1 //h21
+
+//Parameters h12 and h22
+
+v1 = v2/2 //Voltage1 (in volts)
+h12 = v1 / v2 //h12
+rnet = R2 + R3 //Output resistance (in ohm)
+h22 = 1/rnet //h22 (in mhos)
+
+//Result
+
+printf("\n h11 : %0.3f \n h21 : %0.3f \n h12 : %0.3f \n h22 : %0.3f ",h11,h21,h12,h22)
|