summaryrefslogtreecommitdiff
path: root/3296/CH2/EX2.3/Ex2_3.sce
blob: 20214e1cf6e097ace9ebb78fb6ec03fdc956537d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// chapter 2
// example 2.3
// Find the minimum diameter of the steel wire
// page-16-17
clear;
clc;
// given
P=5; // in kN (Load on the steel wire)
sigma=100; // in MPa (stress in the wire)
// calculate
P=P*1E3; // changing unit from kN to N
sigma=sigma*1; // changing unit from MPa to N/mm^2
// since stress=P/A= P/(Pi*d^2/4), therefore d can be calculated as
d=sqrt(4*P/(%pi*sigma)); // calculation of minimum diameter of the steel wire
printf("\nThe minimum diameter of the steel wire is \t d=%.2f mm  or %.f mm",d,d);