summaryrefslogtreecommitdiff
path: root/1844/CH3/EX3.3/3Q3.sce
blob: 84ed750b7ff732222e219f82ae2ec5589427260d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc
// all are in m
// For first 1500 m
e= (0+.10)/2
L=20
L1=L+e
l1=1500
k1= L1*l1/L
//For next 1400 m
e=(.10+.18)/2
L=20
L1=L+e
l1=1400
k2= L1*l1/L

l=k1+k2
printf('Total length %f m',l)