diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH4/EX4.1/Ex4_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2345/CH4/EX4.1/Ex4_1.sce')
-rwxr-xr-x | 2345/CH4/EX4.1/Ex4_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
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) + |