Question: Question 2 Let x = linspace ( - 1 2 , 1 5 , 6 0 ; If y = x 4 + 8 x

Question 2
Let x= linspace(-12,15,60;
If y=x4+8x3+2x2-80x-75
Using
(i). a for loop (looping procedure), generate the y vector for all values of x and plot (x,y)
(ii). array operation (vectorization), find y for all values of x. Plot (x,y) on a new figure.
Remember the title and axis labels. Do not upload the figures.
Hint: use polyval for full credit.
 Question 2 Let x= linspace(-12,15,60; If y=x4+8x3+2x2-80x-75 Using (i). a for

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 Databases Questions!