Use Matlab and write entier script
Problem 2.
Generate the estimate (linear estimate) for y_est, and plot(x , y_est).
Use “hold on” and plot(x,y) and plot(x,y_est), so that you can see the result of the line and how it fits the data. Does it look like it did a pretty good job?
An estimate of the “residual error” is the sum of the squares of the difference between y and y_est.
This is often denoted as r2.
r2 = sum( (y – y_est) .^2)
or equivalently
r2 = sum( (y – y_est)’ * (y – y_est)’)
What is the residual error for the above problem?
In: Mechanical Engineering
Use Matlab and write entier script
Problem 1.
Using the information above, find y(n) for all n between 1:N.
y(tn)=mx(tn)+b+r(tn)
y=mx+b
Plot the points on a graph, without connecting them with a line. Use a command like:
plot( x, y, ‘.r’ )
Now we want to find the “best fit” solution. As was mentioned before, this was defined in the prior exercise. (You may wish to read this to understand how the algorithm works.) Use the MATLAB code below.
You have the vectors x and y already. You need a vector I, which is a column which each element equal to 1.
Programming Steps:
I = ones(length(x),1);
u = [ x , I ];
w = (u’ * u) \ ( u’ * y) ;
The result is an estimate of the values of m and b. The estimate for m is w(1) and the estimate for b is w(2). The resulting estimate for y is:
y_est = u * w;
In: Mechanical Engineering
use newton raphson method to solve the following system of nonlinear equations
x1^2+x2^2=50 ; x1*x2=25
stop after three iterations. initial guess : (x1,x2) = (2,1)
In: Mechanical Engineering
How does Pearlite form (start from the Austenite phase) and why do the layers within an etched Pearlitic microstructure often appear to be of variable separation?
In: Mechanical Engineering
A Projectile is shot at a moving target with initial velocity Vo=2000ft/s. The target is moving at 500ft/s and its initial start was (Xo, Yo)= 200',300' at angle phi=15. the weight of the target is 5lbf. Gravity is 32.3 ft/s^2. Find angle theta the projectile would need to be shot to hit the target. No drag. There is the high angle case and low angle
In: Mechanical Engineering
Water vapor at 5 bar, 320°C enters a turbine operating at steady state with a volumetric flow rate of 3 m3/s and expands adiabatically to an exit state of 1 bar, 200°C. Kinetic and potential energy effects are negligible. Determine for the turbine: (a) the power developed, in kW. (b) the rate of entropy production, in kW/K. (c) the percent isentropic turbine efficiency.
In: Mechanical Engineering
Why does a eutectic or eutectoid microstructure take the form that it does?
In: Mechanical Engineering
In: Mechanical Engineering
How does shot peening introduce residual stresses over a material surface?
Explain its mechanism by drawing the material surface plastically deformed as a result of the impact of the shot.
In: Mechanical Engineering
To become familiar with the general equations of plane strain used for determining in-plane principal strain, maximum in-plane shear strain, and average normal strain.
The state of strain at a point has components of ϵx=350.0×(10−6) , ϵy=−200.0×(10−6), and γxy=150.0×(10−6).
Part A - Equivalent in-plane strains on the oriented element. Determine the equivalent in-plane strains on an element rotated counterclockwise at an angle of θ = 30.0 ∘
Part B - In-plane principal strains on the oriented element. Determine the in-plane principal strains on the oriented element.
Part C - Maximum in-plane shear strain and average normal strain on the oriented element. Determine the maximum in-plane shear strain and the average normal strain on the oriented element.
NOTE: This is my last attempt please I need a correct answer. Thank you in advance.
.
In: Mechanical Engineering
1. One example of the Limits of the material being processed in fused deposition modeling is that the material has to be a Thermoplastics. Provide some other examples of the limits of material in FDM.
2. One example of the Limits of the equipment being used in fused deposition modeling is that the machine can only produce small parts. Provide some other examples of the limits of equipmentin FDM.
In: Mechanical Engineering
Describe the basic features of layout and structure of the wing and tail for Boeing 747-400, including arrangements of various components and elements.
In: Mechanical Engineering
6) A tapered surface is to be turned on an automatic lathe. The work piece is 900 mm long with minimum and maximum diameters of 150 mm and 300 mm at opposite ends. The automatic controls on the lathe permit the surface speed to be maintained at a constant value of 200 m/min by adjusting the rotational speed as a function of work piece diameter. Feed=0.25 mm/rev and depth of cut = 3.5 mm. The rough geometry of the piece has already been formed, and this operation will be the final cut. Determine (a) the time required to turn the taper and (b) the rotational speeds at the beginning and end of the cut. (c) Suppose that the automatic lathe surface speed is not available and a conventional lathe must be used. Determine the rotational speed that would be required to complete the job in exactly the same time as in part (a) of the problem.
In: Mechanical Engineering
how does hot and cold working affect work hardening?
In: Mechanical Engineering
Provide a sketch of how the tensile strength and the hardness of a simple Fe-C alloy changes as the carbon content is varied. Details the reasons behind the responses that you have sketched – ensuring you relate these to the relevant diagrams.
In: Mechanical Engineering