blob: 31d33c8171177fbc0986204703d9c5ccb8119d70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//Solutions to Problems In applied mechanics
//A N Gobby
clear all;
clc
//initialisation of variables
p1=12000//in
p2=0.0125//lbf/in
x=8//in
w=14300//in
r=0.122//in
//CALCULATIONS
M=(p1/p2)*(x/(%pi/4*1^2))//lbf/in^2
P=0.1*x/100//in
S=w/(%pi/4*1^2)//lbf/in^2
P1=(r*100/x)//percent
//RESULTS
printf('the modulus of elasticity=% f lbf/in^2',M)
printf('non-proportional elongation=% f lbf/in^2',S)
printf('the percentage elongation=% f percent',P1)
|