Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Past4 Given the following function f(x) = x3-(5)2 + 2x-10000X Use a while loop t

ID: 3745267 • Letter: P

Question

Past4 Given the following function f(x) = x3-(5)2 + 2x-10000X Use a while loop to computef(x) for many evenly spaced values of 0 20 and create a plot of the results. 1 If MatrixA is a singular matrix then the inverse cannot be taken. Adjust the matrix accordingly. 2You should receive an error message for this function. Take a screen shot of the message, insert it into your re- port and state what the error message is telling you. After you have experienced and recorded this error message, comment out this line of code using the % sign at the beginning of the line. If you do not receive an error message then explain why there should have been an error when adding matrices of incompatible size. O SEBE Mechanics Group, 2014-2017 CEE/CNE 210 Statics Arizona State University Given the following function f (x) 20000 log(x) - 3x Use a for loop to compute f(x) for 1 sx S 20 and create a plot on the same plot window as the first plot. Use a different line color and line weight for each plot. Save the final graph that contains the plots for both functions as a jpeg file and insert it into your report.

Explanation / Answer

f1 = []; x_vec = 0:0.1:20; i = 1; while i