Me 349 engineering analysis assignment - plot the function


Engineering Analysis Assignment -

For every problem, provide The MATLAB script/function files that solve the problems.

Problem 1:

Plot the function f(t) = (x+5)2/(4+3x2) for -3 ≤ x ≤ 5.

using plot command. Use the array for variable x with spacing Δx = 0.01. Label the axis of the plot with names "Variable x" and "Function f(x)"

Problem 2:

A parametric equation is given by

x = 3t/(1+t3), y = 3t2/(1+t3)

(Note that the denominator approaches 0 when t approaches -1) Plot the function (the plot is called the Folium of Descartes) by plotting two curves in the same plot-one for -30 ≤ t ≤ -1.6 and the other for -0.6 ≤ t ≤ 40.

Problem 3:

The position x as a function of time of a particle that moves along a straight line is given by

x(t) = 0.41t4 - 10.80t3 + 64t2 - 8.2t+ 4.4 ft

The velocity v(t) of the particle is determined by the derivative of x(t) with respect to t, and the acceleration a(t) is determined by the derivative of v(t) with respect to t.

Derive the expressions for the velocity and acceleration of the particle, and make plots of the position, velocity, and acceleration as functions of time for 0 ≤ t ≤ 8 s.

Label the axis appropriately with correct units.

Problem 4:

Write a function that solves problem. Provide all math derivations that demonstrate how the polar coordinates of the sum vector are related to the polar coordinates of r1 and r2.

In polar coordinates a two-dimensional vector is y given by its radius and angle (r, θ). Write a user-defined MATLAB function that adds two vectors that are given in polar coordinates. For the function name and arguments use [r th]= AddVecPol (r1 f th1, r2 th2), where the input arguments are (r1, θ1) and (r2, θ2), and the output arguments are the radius and angle of the result. Use the function to carry out the following additions:

(a) r1 = (5, 23o), r2 = (12, 40o). (b) r1 = (6, 80o), r2 = (15, 125o).

566_figure.png

Problem 5:

1. Write a MATLAB function TrigFun that returns value of a function given by the equation

f(x) = a1 cos(ω1x) + a2 sin(ω2x)

at given a1, a2, ω1, ω2, and x. The list of input parameters of function TrigFun should include only three parameters: array a = [a1, a2], array ω = [ω1, ω2], and value x.

2. Prepare a script that uses TrigFun to plot values of f(x) in the interval 0 ≤ x ≤ 10 with equal spacing Δx = 0.05 at a1 = 1, a2 = 0.25, ω1 = π, ω2 = 4π.

Problem 6:

A two-dimensional state of stress at a point in a loaded material is defined by three components of stress σxx, σyy, and τxy. The maximum and minimum normal stresses (principal stresses) at the point, σmax and σmin, are calculated from the stress components by:

σmax/min = (σxxyy)/2 ± √(((σxxyy)/2)2 + τ2xy)

781_figure1.png

Write a user-defined NIATLAB function that determines the principal stresses from the stress components. For the function name and arguments use [Smax, Smin] = princstress (Sxx, Syy, Sxy). The input arguments are the three stress components, and the output arguments are the maximum and minimum stresses.

Use the function to determine the principal stresses for the following states of stress:

(a) σxx = -190MPa, σyy = 145 MPa, and τxy = 110 MPa.

(b) σxx = 14ksi, σyy = -15 ksi, and τxy = 8 ksi.

Solution Preview :

Prepared by a verified Expert
Other Engineering: Me 349 engineering analysis assignment - plot the function
Reference No:- TGS02936267

Now Priced at $25 (50% Discount)

Recommended (95%)

Rated (4.7/5)