From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 257/CH4/EX4.20/example_4_20.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 257/CH4/EX4.20/example_4_20.sce (limited to '257/CH4/EX4.20/example_4_20.sce') diff --git a/257/CH4/EX4.20/example_4_20.sce b/257/CH4/EX4.20/example_4_20.sce new file mode 100644 index 000000000..e8619fdda --- /dev/null +++ b/257/CH4/EX4.20/example_4_20.sce @@ -0,0 +1,17 @@ +syms i1 i2 R1 R2 C s L x1 x2 B1 B2 M K R +disp("loop equations are") +V=i1*(R1+R2)+1/C*('i1-i2')/s-i2*R2 +disp(V) +zero=L*s*i2+i2*R2-i1*R2+(i1-i2)/(C*s) +disp(zero) + +//force-voltage method +F=V; +M=L; +K=1/C; +B=R; +disp("F-V equtions are") +F=s*x1*(B1+B2)+K*(x1-x2)-s*x2*B2 +disp(F) +zero=M*s^2*x2+B2*(x2-x1)*s+K*(x2-x1) +disp(zero) \ No newline at end of file -- cgit