summaryrefslogtreecommitdiff
path: root/1436/CH2/EX2.10/ex2_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '1436/CH2/EX2.10/ex2_10.sce')
-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)