From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1109/CH16/EX16.11/16_11.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 1109/CH16/EX16.11/16_11.sce (limited to '1109/CH16/EX16.11') diff --git a/1109/CH16/EX16.11/16_11.sce b/1109/CH16/EX16.11/16_11.sce new file mode 100755 index 000000000..83e51d12e --- /dev/null +++ b/1109/CH16/EX16.11/16_11.sce @@ -0,0 +1,15 @@ +clear; +clc; +D=20;Ri1=200;Ri2=500; +Ai=D*0.115; +Gi1=1/Ri1;Gi2=1/Ri2; +G3=(sqrt(Gi1*Gi2))/sinh(Ai); +G2=(Gi2/tanh(Ai))-G3; +G1=(Gi1/tanh(Ai))-G3; +R3=1/G3;R2=1/G2;R1=1/G1; +printf("The desired pi attenuator will be:\n"); +printf(" R1 = %f ohms\n",round(R1*10)/10); +printf(" R2 = %f ohms\n",round(R2*10)/10); +printf(" R3 = %f ohms\n",round(R3)); +//the difference in result of R3 is due to erroneous value in textbook. +disp("The difference in result of R3 is due to erroneous value in textbook") -- cgit