Question: Use comp sci expert Function to calculate the inner product of two polynomials. This function should take two vectors ( to represent the polynomials )
Use comp sci expert
Function to calculate the inner product of two polynomials. This function should
take two vectors to represent the polynomials compute the integral using conv
polyint polyval and output a single number. Hint: this function is similar to the
one in Homework
Use MATHLAB to SOLVE only and use comment to explain code and what the code is doing
Important: the function polyint only takes ROW vectors, so you need to make
sure your input for function polyint is a ROW vector.
Function to calculate the norm of a polynomial. This function takes a vector that
represents a polynomial computes the norm of the vector by using the inner product
from the previous function, and outputs a single number. The Matlab functions
norm and dot should never be used in this assignment as it is the wrong
norm.
These two functions can either be at the end of file or in separate files.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
