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 --- 2345/CH4/EX4.1/Ex4_1.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 2345/CH4/EX4.1/Ex4_1.sce (limited to '2345/CH4/EX4.1/Ex4_1.sce') diff --git a/2345/CH4/EX4.1/Ex4_1.sce b/2345/CH4/EX4.1/Ex4_1.sce new file mode 100755 index 000000000..a1fb9414d --- /dev/null +++ b/2345/CH4/EX4.1/Ex4_1.sce @@ -0,0 +1,14 @@ +//Finding capacitance +//Example 4.1(pg 110) +clc +clear +// Let C1 and C2 be unknown capacities +//C1+C2=0.16 +//(C1*C2)/(C1 + C2)=0.03 +// from the above 2 equations we get the following polynomial +s=poly(0,"s"); +p=s^2 -0.16*s +0.0048 +[c1]=roots(p) +c2=0.16-c1 +printf('Thus the capacitance of condensers is %3.2f microF \n ',c1) + -- cgit