MAE 376 HW 4

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

1)C=[1 -4 16 -64 256; % this is the Lagrange multiplier y

1
to y
5

1 -3 9 -27 81;
1 -2 4 -8 16;
1 -1 1 -1 1;
1 0 0 0 0];

y=[5 0 3 2 9]';

a=C\y % this the matrix analysis []

a = 9 % []
21
21
8
1
y=0;
for x=-4:0.01:4 %the for loop condition is also the range for the function
y=y+1; %the loop stops once the condition is satisfied and we also
k(y)=x; %get the required no. of data points corresponding to the
lagran(y) =((x^4)+(8*x^3)+(21*x^2)+(21*x)+9); %interval and range
plot(k,lagran) %now there are equal X and Y length to plot
end






Q2) x= -3:0.001:3; %the given range for the plot
y= 1.07;2.3;7.5;30;7.5;2.3;1.07; %the calculated f
1
(x)

to f
5
(x) in paper
fx=(30./(1+(3*x.^2))); %the function written with matrix
multiplier for matlab operation

plot (x,fx)














4) U= [160 180 200 220 240]; %the given cutting speed
Ti=[7 5.5 5 3.5 2]; %the given tool life

T= exp((1/0.353)*(log(326.865./U))); %the linearized eqn for tool life

plot (U,Ti,U,T) %ploting both graphs in the same plot








The approximate plot






















5) ti=[1 20 40 60 80 100 120];
u= [1.5 1.6 1.8 2 2.1 2.4 3];

T=1:0.1:120; %ploting between the range and interval
U=((0.109*(T.^(0.5)))./(1+(20.21./T))); %approximate value of a & b
%close though the curvature
differs
plot (ti,u,'o',T,U)

You might also like