summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.26
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /569/CH3/EX3.26
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 '569/CH3/EX3.26')
-rwxr-xr-x569/CH3/EX3.26/3_26.sci13
1 files changed, 13 insertions, 0 deletions
diff --git a/569/CH3/EX3.26/3_26.sci b/569/CH3/EX3.26/3_26.sci
new file mode 100755
index 000000000..961b9be06
--- /dev/null
+++ b/569/CH3/EX3.26/3_26.sci
@@ -0,0 +1,13 @@
+//to find no of rods of desired length
+
+clc;
+n=25000; //no of rods
+n1=12500; //length>10mm
+n2=2000; //length>10.25
+a=n1-n2; //10<length<10.25
+p=a/n;
+t=1.41; //using p
+t1=t*2;
+p1=.4975;
+b=p1*n; //9.5<length<10
+disp(a+floor(b),'total no of rods'); \ No newline at end of file