blob: d0bf2bb86546f7fbbb13b378305951d833e8ee53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//find diameter of axle
clc
//solution
//given
L=1000//mm
W=30*10^3//N
f=60//N/mm^2//stress
//let d be diameter
pi=3.14
//Z=(pi/32)*d^3
M=W*L/4//N-mm
//f=M/Z
d=[M/(60*0.09982)]^(1/3)//mm
printf("the diameter of axle is,%f mm",d)
|