summaryrefslogtreecommitdiff
path: root/1436/CH2/EX2.10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1436/CH2/EX2.10
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1436/CH2/EX2.10')
-rwxr-xr-x1436/CH2/EX2.10/ex2_10.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1436/CH2/EX2.10/ex2_10.sce b/1436/CH2/EX2.10/ex2_10.sce
new file mode 100755
index 000000000..196cc017c
--- /dev/null
+++ b/1436/CH2/EX2.10/ex2_10.sce
@@ -0,0 +1,23 @@
+// Example 2.10, page no-121
+clear
+clc
+
+c=0.57
+
+//(a)
+d=0.1
+di1=100
+di2=1000
+c1=c*di1*10/d
+c1=ceil(c1)
+printf("(a)\nC1=%d pf",c1)
+
+//(b)
+c2=c*di2*10/d
+printf("\n(b)\nC2=%d pf",c2)
+
+//(c)
+ds=0.09
+c11=c*di1*10/ds
+c12=c*di2*10/ds
+printf("\n(c)\nC1 = %.1f pf\nC2 = %d pf",c11,c12)