blob: 18ba7f359f88d980cb133ff15417465b48ca6f45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Solutions to Problems In applied mechanics
//A N Gobby
clear all;
clc
//initialisation of variables
a=600000//lbf in
b=%pi*(4)^4/32//in^2
q=4000//in^2
//CALCULATIONS
D=sqrt((a)/q)*2/b*10//in
//RESULTS
printf('The shaft diameter=% f in',D)
|