Needing a help how to answer these questions! Is trapz guaranteed to give the co
ID: 3125243 • Letter: N
Question
Needing a help how to answer these questions!
Is trapz guaranteed to give the correct answer? I.e., if you give it samples from a function you can integrate analytically, will it give that answer? Fit a small-degree polynomial to a large number of data points with t values between 0 and 1. Are you guaranteed to pass through the data points? The length L of a belt that traverses two pulley wheels, one of radius R and one of radius r, whose centers are a distance S apart is given by the following equation: Write a function (as a function file) that takes R, r, and S as input values and returns L If you can't do this as a function file, do it as an anonymous function (-1/2 pt). If you can't do an anonymous function, just write the equation (-1/2 pt). In a separate script, use your function file from problem 1 to plot L for R = 3 cm, r = 1 cm, and S in the range 0.1 to 1.0 cm. Use fplot to create the plot If you can't figure out how to plot with fplot, use plot instead (-1 pt). Someone gives you data in two text files 'coolDataXValues.txt' and 'coolDataYValues.txt' They claim it's data from a quadratic polynomial function. Read the data in (assume you've saved the text files to your MATLAB directory), fit a polynomial to the data, and print out the resulting polynomial in polynomial form (ie, 3x^2+2x+3) Now plot the data and the fitted polynomial from the previous problem on the same graph. Make sure you can tell the difference (visually) between the data and the plotted function. Include a legend (you don't need labels or a tide). For the following function and plot, write additional matlab code that first finds the place(s) where the function crosses the y = 0 axis, then plots those crossings as X's on the graphExplanation / Answer
PART 1)
1) TRAPS IS NOT GUARRANTEED TO GIVE CORRECT ANSWERS AS IT HAS ITS OWN LIMITATIONS WHILE CALCULATING AND INTEGRATING HENCE THE ANSWERS IS NO.
2) A SMALLEST POLYNOMIAL IS OF THE DEGREE 2 AND IT WE ARE GIVEN THE DATA WITH 0 TO 1 THEN THE SQUARE OF ANY VALUE BETWEEN 0 AND 1 IS BETWEEN 0 AND 1 HENCE WE WILL PASS THROUGH THE DATA
HENCE THE ANSWER WILL BE 1
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.