Three laws in the computation of sums are for any permutation p(k) of the set of integers

Question:

Three laws in the computation of sums are

Distributive Σ ca = c Σ, a, αk Associative Σ, a+ be) Σ, α + Σ, b Commutative: Σ, ak - Σρap)


for any permutation p(k) of the set of integers k in the summation.

(a) Explain why the above rules make sense when computing sums. To do that consider

Σα Σ ak ak, and Σ). k=0 k=0


Let c be a constant, and choose any permutation of the values [0; 1; 2] for instance [2; 1; 0] or [1; 0; 2].

(b) The trick that Gauss played when he was a preschooler can be explained by using the above rules. Suppose you want to find the sum of the integers from 0 to 10; 000 (Gauss did it for integers between 0 and 100 but he was then just a little boy, and we can do better!). That is, we want to find S where


to do so consider


and apply the above rules to find then S. Come up with a MATLAB function of your own to do this sum.

(c) Find the sum of an arithmetic progression


for constants and , using the given three rules.

(d) Find out if MATLAB can do these sums symbolically, i.e., without having numerical values. Use the found symbolic function to calculate the sum in the previous item when α = β = 1  and N = 100.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Signals and Systems using MATLAB

ISBN: 978-0128142042

3rd edition

Authors: Luis Chaparro, Aydin Akan

Question Posted: