An interactive introduction to MATLAB

(Jeff_L) #1
1.5solving systems of linear equations 17

Exercise 2: Variables and arrays (continued)


  1. Geometric series
    The sum of a geometric series 1 +r+r^2 +r^3 +...+rnapproaches the
    limit 1 −^1 rforr < 1asn→∞. Taker=0.5and compute sums of series
    0 to 10, 0 to 50, and 0 to 100. Calculate the aforementioned limit and
    compare with your summations. Do the summation using the built-in
    sumfunction.


Exercise 2 Solutions


(http://www.eng.ed.ac.uk/teaching/courses/matlab/unit01/Ex2-
Solutions.shtml)


Additional Exercises
You should now attempt questions from Chapter C.1.

Free download pdf