I wonder how to a problem 5.13.
This problem is related to applied numerical methods with
Matlab(third edition).
I want Matlab code.
Please find attached the MATLAB code for the above problem below:
L = 600;
E = 50000;
I = 30000;
w0 = 2.5;
tolerance = 1e-6;
% y function
y = @(x) (w0/(120*E*I*L))*(-x^5+2*(L^2)*(x^3)-(L^4)*x);
% derivative function
f = @(x) (w0/(120*E*I*L))*(-5*x^4+2*3*(L^2)*(x^2)-(L^4));
% start and end position of the beam
x1 = 0;
x2 = 600;
%bisection method
while (x2-x1)/x2>tolerance
f1 = f(x1);
f2 = f(x2);
if f1*f2 > 0
break;
end
x0 = (x1+x2)/2;
f0 = f(x0);
if f1*f0 < 0
x2 = x0;
else
x1 = x0;
f1 = f0;
end
end
%result
fprintf('The maximum deflection of the beam occurs at x = %f and
the deflection is %f\n',x0,y(x0));
%RESULT : The maximum deflection of the beam occurs at x = 268.328047 and the deflection is -0.515190
I wonder how to a problem 5.13. This problem is related to applied numerical methods with Matlab(third edition). I want Matlab code. 5.13 Figure P5.13a shows a uniform beam subject to a lin- early...
Figure P5.13a shows a uniform beam subject to a linearly increasing distributed load. The equation for the resulting elastic curve is (see Fig. P5.135) Use bisection to determine the point of maximum deflection (that is, the value of x where dy/dx = 0). Then substitute this value into Eq. (P5.13) to determine the value of the maximum deflection. Use the following parameter values in your com- putation: L = 600 cm, E = 50,000 kN/cm², I = 30,000 cm, and w0...
Homework 5 Duc 02/21/20 by 7 pm Problem 2: Determining doping density in Si using the bisection method (Chapra, Problem 5.16). The resistivity pof doped silicon is based on the charge q of an electron, the electron density, and the electron mobility u. The electron density is given in terms of the doping density and the intrinsic electron (carrier) density n. The electron mobility is described by the temperature T, the reference temperature To, and the reference mobility Ho. The...