summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.26/3_26.sci
blob: 961b9be06b164ecc49bc2b97ac90c090b6b5dd01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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');