summaryrefslogtreecommitdiff
path: root/564/DEPENDENCIES/4_2.sce
blob: dbcce4e4fba8bb92e2785e5bc102e48b258682aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pathname=get_absolute_file_path('4.2.sce')
filename=pathname+filesep()+'4.2data.sci'
exec(filename)
M=(W*a*(L-a))/(L);
deff("[y]=f(x)","y=(W*x*(L-x))/(L)")//manding moment
x=[0:0.05:L];
fplot2d(x,f);
xgrid(3);
datatipToggle();
xtitle( 'Banding Moment versus a', ' -a- ', '-M-');
printf("\nMB: %f N.m",M);
printf("\n\nclick on the point to view its coordinate on the plot");