Write a script to integrate a function in three different ways: by eyeballing it, by calling trapz with a list of points, and by calling quad with a function.
Equation we’re going to integrate: y(x) = -x4 + 2x2 + 2.
This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve polynomials and to perform certain operations.
Answer is in MATLAB format
Download Full Solution