Being x ∈ Rn a vector of real numbers of e n. We want to calculate the value of the following sum:
Evaluating it for:
• Left: S. =
• Right Su =
a. Using matlab-Write the function [M.] = suma(x) that calculates the sum for the left(M) and right (11n)
b. Being the vector such that w =1 and w= 1O vs,iz2. Show in a table the obtained values for n = 101, 1001, 10001, 100001, 1000001, 10000001 and 100000001 using the format long e. Comment about your results.