summaryrefslogtreecommitdiff
path: root/3782/CH5/EX5.1/Ex5_1.sce
blob: d7a26bfef78425dbc43e03cee4a179136529c0cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

//

//

a=150
b=100
ar=2.525
br=1.755

sc=1000
d=(a*a)/(sc*sc)

A=0.0673*d*d

fa=ar-A

printf("\n correct reading on A = %0.3f meters',fa)


d=(b*b)/(sc*sc)

B=0.0673*d*d
fb=br-B

printf("\n correct reading of B = %0.3f meters',fb)

AB=fa-fb
printf("\n true difference is %0.3f meters',AB)