summaryrefslogtreecommitdiff
path: root/2744/CH3/EX3.5/Ex3_5.sce
blob: 1d37fffb72b63786b52c13b2f050d4505fad224e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear;
clc;
d = 2;//inches
l = 8;//feet
U = 50;// ft-lbs
E = 28*10^6;// lb/in^2
V = 0.25*%pi*d^2*l*12;// in^3
p = sqrt(2*U*12*E/V);// lb/in^2
e = p/E;
del_l = e*l*12;// inches
printf('Maximum instantaneous stress produced is p = %d lb/in^2',p);
printf('\n Maximum instantaneous extension produced is del_l = %.4f inches',del_l);
//there is an error in the answer given in text book