Question: For the function y = x 3 - 2 x 2 + x , calculate the value of y for the following values of x

For the function y=x3-2x2+x, calculate the value of y for the following values of x using element-by-element operations: -2,-1,0,1,2,3,4.
For the function y=x2-2x+4, calculate the value of y for the following values of x using element-by-element operations: -3,-2,-1,0,1,2,3.
The length |u|(magnitude) of a vector u=+yj+zk is given by |u|=x2+y2+z22. Given the vector u=23.5i-17j+6k, determine its length two ways:
(a) Define the vector in MATLAB, and then write a mathematical expression that uses the components of the vector.
(b) Define the vector in MATLAB, then use element-by element operations to create a new vector with elements that are the squares of the elements of the original vector. Then use MATLAB built-in functions sum and sqret to calculate the length. All of these steps can be written in one command.
The unit vector un in the direction of the vector u=+yj+zk is given by un=+yj+zkx2+y2+z22. Determine the unit vector of the vector u=-8i-14j+25k by writing one MATLAB command.
Define x and y as the vectors x=[1,3,5,7,9] and ; Then use them in the following expressions to calculate z using element-by-element calculations.
(a)z=xy2x+y
(b)z=x(x2-y)-(x-y)2
Define p and w as scalars, p=2.3 and define w=5.67, and, t,x, and y as the vectors t=[1.2,3.4,5],x=[2.8,2.5,2.2,1.9,1.6], and y=[4.7,10.13,17]. Then use these variables to calculate the following expressions using element-by-element calculations for the vectors.
(b)S=p(x+y)2yw+wxtpy
For the function y = x 3 - 2 x 2 + x , calculate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!