summaryrefslogtreecommitdiff
path: root/3863/CH1/EX1.2/Ex1_2.sce
blob: c95c74ef3135f0a290251edc02dc8963638cd7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//

//Given
//variable declaration
P=4000         //Load in N
sigma=95       //Stress in N/sq.mm

//Calculation
D=(sqrt(P/((%pi/4)*(sigma))))  //Diameter of steel wire in mm


//Result
printf("\n Diameter of a steel wire = %0.3f  mm",D)