<?xml version="1.0" encoding="UTF-8"?>
<Worksheet><Version major="6" minor="0"/><View-Properties><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" bullet="none" firstindent="0.0" leftmargin="0.0" linebreak="space" linespacing="0.0" name="Normal" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Font background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" name="Line Printed Output" opaque="false" readonly="true" size="10" underline="false"/><Font background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" name="Maple Input" opaque="false" readonly="false" size="12" underline="false"/><Font background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="Page Number" opaque="false" readonly="false" size="12" underline="false"/></Styles><Page-Numbers enabled="false" first-number="1" first-numbered-page="1" horizontal-location="right" style="Page Number" vertical-location="bottom"/><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"><Font background="[0,0,0]"># download from http://wwwcip.informatik.uni-erlangen.de/~sitsschn/thi3/

# Aufgabe 8.3
for n in 5,10,20,50,100,130 do:
  s:=0:
  low:=floor(0.8*n):
  high:=floor(1.2*n):
  for k from low to high do:
    s:=s+binomial(2*n,k);
  end:
  p:=evalf(s * 2^(-2*n));
  printf("n=%3d, p(n)=%lf\n",n, p);
end:</Font></Text-field></Input><Output><Text-field layout="Normal" style="Line Printed Output"><Font background="[0,0,0]">n=  5, p(n)=0.656250
n= 10, p(n)=0.736824
n= 20, p(n)=0.846140
n= 50, p(n)=0.964800
n=100, p(n)=0.996365
n=130, p(n)=0.999024
</Font></Text-field></Output></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Text-field/></Worksheet>