<?xml version="1.0" encoding="UTF-8"?>
<Worksheet><Version major="6" minor="1"/><View-Properties><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" name="Text"/><Layout alignment="left" name="Input"/><Layout alignment="left" name="Section" spaceabove="16.0" spacebelow="9.0"/><Layout alignment="left" name="Title"/><Layout alignment="left" name="Subsection" spaceabove="13.0" spacebelow="7.0"/><Font background="[0,0,0]" family="Times New Roman" name="Text" size="12"/><Font background="[0,0,0]" bold="true" family="Arial" name="Section" size="16"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Input" size="12"/><Font background="[0,0,0]" family="Arial" name="Title" size="36"/><Font background="[0,0,0]" bold="true" family="Arial" name="Subsection" size="14"/></Styles><Group><Text-field layout="Title" style="Title">Chapter 4</Text-field></Group><Text-field spacebelow="1.0"><Font background="[0,0,0]" family="Times New Roman" size="9"> </Font></Text-field><Section><Title><Text-field layout="Section" style="Section">Mathematica code for exercises in section 4.1</Text-field></Title><Section><Title><Text-field layout="Subsection" style="Subsection">4.</Text-field></Title><Group><Text-field layout="Text" style="Text">The first command defines Sum1[n] as the sum of the first n terms of the series. The second command generates a table of the values of the partial sums as n increases from 10 to 400 in multiples of 10.</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum1 := n -&gt; evalf(1 + sum(k!/100^k, k = 1..n - 1), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([10*n, Sum1(10*n)], n=1..40);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">5.</Text-field></Title><Group><Text-field layout="Text" style="Text">First think about how you can use Stirling's formula to identify where this smallest summand is likely to occur. The follwing command finds all values of k!/100^k for a &lt;= k &lt;= b.</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">TestSummand := (a,b) -&gt; seq([k, evalf(k!/100^k, 20)], k=a..b);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">TestSummand(10,20);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">8.</Text-field></Title><Group><Text-field layout="Text" style="Text">After finding your candidate, you can test it with the command</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">TestBernoulliSummand := (a,b) -&gt;  seq([k, evalf(abs(bernoulli(2*k)/((2*k - 1)*(2*k)*10^(2*k - 1))), 20)], k=a..b);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">TestBernoulliSummand(10,20);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">13.</Text-field></Title><Group><Text-field layout="Text" style="Text">The first command defines Sum2[n] as the sum of the first n terms of the series. The second command generates a table of the values of the partial sums as n increases from 1000 to 2000 in multiples of 100.</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum2 := n -&gt;  evalf(sum(sin(k/100)/ln(k), k=2..n + 1), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum2(100*n)], n=10..20);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">14.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum3 := n -&gt; evalf(sum((-1)^k/ln(k),k = 2 .. n+1), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum3(100*n)], n=10..20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum4 := n -&gt;  evalf(sum((-1)^k*ln(k)^2/k,k = 2 .. n+1), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum4(100*n)], n=10..20);</Text-field></Input></Group><Group><Text-field layout="Text" style="Text"><Equation executable="true" style="Text">LSUkc3VtRzYkKiYpISIiJSJrRyIiIi0lJHNpbkc2IyokRihGJ0YpL0YoOyIiIywmJSJuR0YpRilGKQ==</Equation></Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum5 :=  evalf(sum((-1)^k*sin(1/k), k = 2 .. n+1), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum5(100*n)], n=10..20);</Text-field></Input></Group><Group><Text-field layout="Text" style="Text"><Equation executable="true" style="Text">LSUkc3VtRzYkKigpISIiJSJrRyIiIiktJSNsbkc2I0YoRitGKUYoISIjL0YoOyIiIywmJSJuR0YpRilGKQ==</Equation></Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum6 := n -&gt; evalf(sum((-1)^k*ln(k)^ln(k)/k^2, k = 2 .. n+1), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum6(100*n)], n=10..20);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">15.</Text-field></Title><Group><Text-field layout="Text" style="Text"/></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum7 := n -&gt; evalf(sum((-1)^(k + 1 - 3*floor((k + 1)/3))/k, k=1..n), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum7(100*n)], n=10..20);</Text-field></Input></Group><Group><Text-field layout="Text" style="Text"><Equation executable="true" style="Text">LSUkc3VtRzYkKiYpISIiLSUmZmxvb3JHNiMsJiUia0cjIiIiIiIjI0YnRi9GLkYuRixGJy9GLDtGLiUibkc=</Equation></Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum8 := n -&gt;  evalf(sum((-1)^floor(1/2*k-1/2)/k, k = 1 .. n), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum8(100*n)], n=10..20);</Text-field></Input></Group><Group><Text-field layout="Text" style="Text"><Equation executable="true" style="Text">LSUkc3VtRzYkKiYpISIiLSUmZmxvb3JHNiMqJCUia0cjIiIiIiIjRi5GLEYnL0YsO0YuJSJuRw==</Equation></Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum9 := n -&gt; evalf(sum((-1)^floor(k^(1/2))/k, k = 1 .. n), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, Sum9(100*n)], n=10..20);</Text-field></Input></Group></Section></Section><Section><Title><Text-field layout="Section" style="Section">Mathematica code for exercises in section 4.2</Text-field></Title><Section><Title><Text-field layout="Subsection" style="Subsection">15.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum10 := n -&gt; evalf(sum((k/(2*k-1))^k,k = 1 .. n), 20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([20*n, Sum10(20*n)], n=1..10);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">16.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum11 := n -&gt; evalf(sum((k/(2*k-1))^k*2^k,k = 1 .. n), 20);

Sum12 := n -&gt; evalf(sum((k/(2*k-1))^k*(-2)^k,k = 1 .. n), 20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([20*n, Sum11(20*n), Sum12(20*n)], n=1..10);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">17.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum13 := n -&gt; evalf(sum(k^k/k!,k = 1 .. n), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([20*n, Sum13(20*n)], n=1..10);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">18.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum14 := n -&gt; evalf(sum(k^k*exp(-k)/k!,k = 1 .. n), 20);

Sum15 := n -&gt; evalf(sum(k^k*(-exp(1))^(-k)/k!,k = 1 .. n), 20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([20*n, Sum14(20*n), Sum15(20*n)], n=1..15);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">19.</Text-field></Title><Group><Text-field layout="Text" style="Text"><Equation executable="true" style="Text">LSUkc3VtRzYkKiYpIiIjJSJrRyIiIkYoIyEiIkYnL0YoO0YpJSJuRw==</Equation></Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum16 := n -&gt; evalf(sum(2^k/k^(1/2), k = 1 .. n), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([20*n, Sum16(20*n)], n=1..10);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">20.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum17 := n -&gt; evalf(sum(1/k/ln(k),k = 2 .. n), 20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([1000*n, Sum17(1000*n)], n=1..10);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">21.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum18 := n -&gt; evalf(sum(1/k/ln(k)^(3/2),k = 2 .. n), 20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([1000*n, Sum18(1000*n)], n=1..10);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">22.</Text-field></Title><Group><Text-field layout="Text" style="Text">sum(1/k/ln(k)/ln(ln(k)),k = 10 .. n)</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">Sum19 := n -&gt; evalf(sum(1/k/ln(k)/ln(ln(k)),k = 10 .. n), 20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([1000*n, Sum19(1000*n)], n=1..10);</Text-field></Input></Group></Section></Section><Section><Title><Text-field layout="Section" style="Section">Mathematica code for exercises in section 4.3</Text-field></Title><Section><Title><Text-field layout="Subsection" style="Subsection">6.</Text-field></Title><Group><Text-field layout="Text" style="Text">sum((k/(2*k-1))^k*x^k,k = 1 .. n)</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum1 := (n,x) -&gt; sum((k/(2*k-1))^k*x^k,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum1(3,x),x = -2.1 .. 2.1),plot(FSum1(6,x),x = -2.1 .. 2.1),plot(FSum1(9,x),x = -2.1 .. 2.1),plot(FSum1(12,x),x = -2.1 .. 2.1));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">8. </Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum2 := (n,x) -&gt; sum(k^k/k!*x^k, k=1..n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum2(3,x),x = -.7 .. .7),plot(FSum2(6,x),x = -.7 .. .7),plot(FSum2(9,x),x = -.7 .. .7),plot(FSum2(12,x),x = -.7 .. .7));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">10. </Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum3 := (n,x) -&gt; sum(2^k/Sqrt[k]*x^k, k=1..n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum3(3,x),x = -.7 .. .7),plot(FSum3(6,x),x = -.7 .. .7),plot(FSum3(9,x),x = -.7 .. .7),plot(FSum3(12,x),x = -.7 .. .7));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">11.</Text-field></Title><Group><Text-field layout="Text" style="Text">These summands can be simplified by realizing that <Font executable="true">product(2*i,i=1..n)/product(2*i+1,i=1..n)</Font> = 4^n (n!)^2\/(2*n + 1)!</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum4 := (n,x) -&gt; sum(4^k*k!^2*x^k/(2*k+1)!,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum4(3,x),x = -.7 .. .7),plot(FSum4(6,x),x = -.7 .. .7),plot(FSum4(9,x),x = -.7 .. .7),plot(FSum4(12,x),x = -.7 .. .7));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">14.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum5 := (n,x) -&gt; sum(2^k*k!*k^k*x^k/(2*k)!,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum5(3,x),x = -2 .. 2),plot(FSum5(6,x),x = -2 .. 2),plot(FSum5(9,x),x = -2 .. 2),plot(FSum5(12,x),x = -2 .. 2));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">15.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum6 := (n,x) -&gt; sum(x^k/k^2,k = 1.. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum6(3,x),x = -1.1 .. 1.1),plot(FSum6(6,x),x = -1.1 .. 1.1),plot(FSum6(9,x),x = -1.1 .. 1.1),plot(FSum6(12,x),x = -1.1 .. 1.1));</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum7 := (n,x) -&gt; 1+sum((2*k)!*x^k/k!^2,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum7(3,x),x = -.4 .. .4),plot(FSum7(6,x),x = -.4 .. .4),plot(FSum7(9,x),x = -.4 .. .4),plot(FSum7(12,x),x = -.4 .. .4));</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum8 := (n,x) -&gt; 1+sum(k!^3*x^k/(3*k)!,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum8(3,x),x = -30 .. 30),plot(FSum8(6,x),x = -30 .. 30),plot(FSum8(9,x),x = -30 .. 30),plot(FSum8(12,x),x = -30 .. 30));</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum9 := (n,x) -&gt; 1+sum((2*k+1)!*x^k/(2^k)/k!^2,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum9(3,x),x = -.7 .. .7),plot(FSum9(6,x),x = -.7 .. .7),plot(FSum9(9,x),x = -.7 .. .7),plot(FSum9(12,x),x = -.7 .. .7));</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum10 := (n,x) -&gt; sum(product(i^2-1,i = 2 .. k)*x^k/product(i^2,i = 2 .. k),k = 2 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum10(3,x),x = -1.2 .. 1.2),plot(FSum10(6,x),x = -1.2 .. 1.2),plot(FSum10(9,x),x = -1.2 .. 1.2),plot(FSum10(12,x),x = -1.2 .. 1.2));</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum11 := (n,x) -&gt; 1+sum((2*k)!^2*x^k/(4^k)/k!^4,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum11(3,x),x = -.3 .. .3),plot(FSum11(6,x),x = -.3 .. .3),plot(FSum11(9,x),x = -.3 .. .3),plot(FSum11(12,x),x = -.3 .. .3));</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum12 := (n,x) -&gt; 1+sum((3*k)!*x^k/k!/(2*k)!,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum12(3,x),x = -.2 .. .2),plot(FSum12(6,x),x = -.2 .. .2),plot(FSum12(9,x),x = -.2 .. .2),plot(FSum12(12,x),x = -.2 .. .2));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">27.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">HyperSum1 := (n,m) -&gt; evalf(sum((product(3*i-1,i = 1 .. k)/product(3*i,i = 1 .. k))^m,k = 1 .. n), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum1(100*n, 1)], n=1..10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum1(100*n, 2)], n=1..10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum1(100*n, 3)], n=1..10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum1(100*n, 4)], n=1..10);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">28.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">HyperSum2 := (n,m) -&gt; evalf(sum((product(3*i-2,i = 1 .. k)/product(3*i,i = 1 .. k))^m,k = 1 .. n), 10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum2(100*n, 1)], n=1..10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum2(100*n, 2)], n=1..10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum2(100*n, 3)], n=1..10);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([100*n, HyperSum2(100*n, 4)], n=1..10);</Text-field></Input></Group></Section></Section><Section><Title><Text-field layout="Section" style="Section">Mathematica code for exercises in section 4.4</Text-field></Title><Section><Title><Text-field layout="Subsection" style="Subsection">1.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum13 := (n,x) -&gt; evalf(sum((-1)^(k-1)*cos(1/2*(2*k-1)*Pi*x),k = 1 .. n),10);</Text-field></Input></Group><Group><Text-field layout="Text" style="Text">The first command plots the partial sums; the second lists them.</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum13(n,1/2)],n = 1 .. 20)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum13(n, 1/2)], n=1..20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum13(n,2/3)],n = 1 .. 20)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum13(n, 2/3)], n=1..20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum13(n,3/5)],n = 1 .. 20)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum13(n, 3/5)], n=1..20);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum13(n,5/18)],n = 1 .. 20)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum13(n, 5/18)], n=1..20);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">3.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum14 := (n,x) -&gt; evalf(sum((-1)^(k-1)*cos(1/2*(2*k-1)*Pi*x)/(2*k-1),k = 1 .. n), 10);</Text-field></Input></Group><Group><Text-field layout="Text" style="Text">The first command plots the partial sums for 1 &lt;= n &lt;= 200; the second lists the last 20 values.</Text-field></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum14(n,1/2)],n = 1 .. 200)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum14(n, 1/2)], n=181..202);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum14(n,2/3)],n = 1 .. 200)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum14(n, 2/3)], n=181..202);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum14(n,9/10)],n = 1 .. 200)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum14(n, 9/10)], n=181..202);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[listplot]([seq([n, FSum14(n,99/100)],n = 1 .. 200)],style = POINT,symbol = CIRCLE);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">seq([n, FSum14(n, 99/100)], n=181..202);</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">6.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum15 := (n,x) -&gt; sum((-1)^(k-1)*sin(1/2*(2*k-1)*Pi*x)/(2*k-1),k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum15(3,x),x = -2 .. 2),plot(FSum15(6,x),x = -2 .. 2),plot(FSum15(9,x),x = -2 .. 2),plot(FSum15(12,x),x = -2 .. 2));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">7.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum16 := (n,x) -&gt; sin(x)*(1-cos(n*x))/(2-2*cos(x))+1/2*sin(n*x);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum16(10,x),x = -Pi .. Pi,view = 0 .. 20),plot(FSum16(20,x),x = -Pi .. Pi,view = 0 .. 20),plot(FSum16(100,x),x = -Pi .. Pi,view = 0 .. 20),plot(FSum16(1000,x),x = -Pi .. Pi,view = 0 .. 20));</Text-field></Input></Group></Section><Section><Title><Text-field layout="Subsection" style="Subsection">11.</Text-field></Title><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">FSum17 := (n,x) -&gt; sum((-1)^(k-1)*sin(1/2*k*Pi*x)/k,k = 1 .. n);</Text-field></Input></Group><Group><Input><Text-field layout="Input" prompt="&gt; " style="Input">plots[display](plot(FSum17(3,x),x = -2 .. 2),plot(FSum17(6,x),x = -2 .. 2),plot(FSum17(9,x),x = -2 .. 2),plot(FSum17(12,x),x = -2 .. 2));</Text-field></Input></Group></Section></Section><Text-field/><Text-field/><Text-field/></Worksheet>
