<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="7" minor="1"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false"><Zoom percentage="200"/></View-Properties>
<MapleNet-Properties warnlevel="3" longdelim="true" plotoptions="" echo="1" errorcursor="false" elisiontermsthreshold="10000" elisiontermsbefore="100" errorbreak="1" prettyprint="3" prompt="&gt; " latexwidth="6.0" useclientjvm="true" ansi="false" screenheight="25" labelwidth="20" plotdevice="inline" typesetting="standard" displayprecision="-1" indentamount="4" elisiondigitsthreshold="10000" quiet="false" plotoutput="terminal" rtablesize="10" preplot="" showassumed="1" plotdriver="openviz" elisiontermsafter="100" labelling="true" postplot="" screenwidth="79" elisiondigitsbefore="100" elisiondigitsafter="100" verboseproc="1" imaginaryunit="I" ShowLabels="false"/>
<Styles><Font name="Heading 4" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 5" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 1" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Text Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Bullet Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Equation Label" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Author" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[40,120,40]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="16" subscript="false" superscript="false" underline="false"/>
<Font name="Page Number" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 3" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Input" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="2D Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Font name="Dash Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 4" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="List Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="2D Math" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Error" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false"/>
<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 2" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Layout name="Ordered List 5" alignment="left" bullet="ROMAN" firstindent="0" leftmargin="144" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Heading 4" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="newline" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 1" alignment="left" bullet="numeric" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Author" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="8" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Heading 3" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Diagnostic" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 4" alignment="left" bullet="ALPHABETIC" firstindent="0" leftmargin="108" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Maple Output" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.3" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="List Item" alignment="left" bullet="indent" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Line Printed Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0"/>
<Layout name="Heading 2" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="2" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 3" alignment="left" bullet="roman" firstindent="0" leftmargin="72" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Error" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Maple Plot" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Warning" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="4" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 2" alignment="left" bullet="alphabetic" firstindent="0" leftmargin="36" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Normal" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Pencil-style name="Pencil 3" pen-color="[0,0,0]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 5" pen-color="[255,0,0]" pen-height="5.0" pen-width="5.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 4" pen-color="[0,0,255]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Highlighter-style name="Highlighter 2" pen-color="[255,204,0]" pen-height="14.0" pen-width="14.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 4" pen-color="[0,255,255]" pen-height="32.0" pen-width="32.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 3" pen-color="[51,255,0]" pen-height="24.0" pen-width="24.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 5" pen-color="[255,255,0]" pen-height="48.0" pen-width="48.0" pen-opacity="0.8"/>
</Styles>
<Task-table>
    <Task-category name="&lt;default&gt;">
    </Task-category>
</Task-table>
<Group labelreference="L224" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">New set of problems is posted in the course schedule page.</Text-field>
</Input>
</Group>
<Group labelreference="L161" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">We continue studying Newton's method</Text-field>
</Input>
</Group>
<Group labelreference="L157" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Now, let us consider the function f(x)=x^3-1 with domain the complex numbers.</Text-field>
<Text-field style="Text" layout="Normal">EXERCISE: Define a procedure to help you find the roots of f by the Netwon's method.</Text-field>
</Input>
</Group>
<Group labelreference="L158" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">f:=x-&gt;x^3-1;
N:=x-&gt;x-f(x)/D(f)(x);
</Text-field>
</Input>
</Group>
<Group labelreference="L226" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">We use a for loop to find a root of f</Text-field>
</Input>
</Group>
<Group labelreference="L227" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">x0:=0.9:
for i from 1 to 10 do x0:=N(x0) end do; </Text-field>
</Input>
</Group>
<Group labelreference="L228" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">x0:=90;
for i from 1 to 20 do x0:=evalf(N(x0)) end do; </Text-field>
</Input>
</Group>
<Group labelreference="L229" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">x0:=-0.5;
for i from 1 to 10 do x0:=N(x0) end do; </Text-field>
</Input>
</Group>
<Group labelreference="L230" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">N(-0.5);</Text-field>
</Input>
</Group>
<Group labelreference="L231" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">N(u);</Text-field>
</Input>
</Group>
<Group labelreference="L232" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">x0:=I:
for i from 1 to 10 do x0:=evalf(N(x0)) end do; </Text-field>
</Input>
</Group>
<Group labelreference="L177" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">1 is one of the roots of f. Since we are working in the complex domain, there are two more roots.</Text-field>
<Text-field style="Text" layout="Normal">Let's try to find them</Text-field>
</Input>
</Group>
<Group labelreference="L225" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L198" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">QUESTION: Is it possible to find all the roots of f by the Newton's method. Why?</Text-field>
</Input>
</Group>
<Group labelreference="L186" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton:=proc(x0)
  local x, i, n;
  global N;
  n:=50;
  x:=x0;
  for i from 1 to n do
     x:=evalf(N(x));
  od;
  return(x);
end:
</Text-field>
</Input>
</Group>
<Group labelreference="L185" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton(2);</Text-field>
</Input>
</Group>
<Group labelreference="L204" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton(-1+0.2*I);</Text-field>
</Input>
</Group>
<Group labelreference="L205" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton(-1+0.02*I);</Text-field>
</Input>
</Group>
<Group labelreference="L235" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L236" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton1:=proc(x0, n)
  local x, i;
  global N;
  x:=x0;
  for i from 1 to n do
     x:=evalf(N(x));
  od;
  return(x);
end:</Text-field>
</Input>
</Group>
<Group labelreference="L237" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton1(3+I,10);</Text-field>
</Input>
</Group>
<Group labelreference="L239" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">We are going to modify the above procedure so it takes as parameters the real and imaginary parts of a complex number  </Text-field>
</Input>
</Group>
<Group labelreference="L240" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton2:=proc(x0,y0)
  local x, i;
  global N;
  x:=x0+y0*I;
  for i from 1 to 10 do
     x:=evalf(N(x));
  od;
  return(x);
end:</Text-field>
</Input>
</Group>
<Group labelreference="L241" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton2(0,3);</Text-field>
</Input>
</Group>
<Group labelreference="L242" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L243" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L244" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">j</Text-field>
</Input>
</Group>
<Group labelreference="L238" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">WHO GOES WHERE??? WHICH INITIAL POINTS CONVERGE TO WHICH ROOTS???</Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L202" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">The map f we are working with has three roots. We saw that if e take an initial pointst &quot;close&quot; to one of the roots, and apply Newton's method, then the sequence of iterates of the associated Newton's function converges to the close root. Now we'd like to study what happens with the rest of points, whether they converge to a root or not when we apply Newton method, and if they converge, to which root.</Text-field>
<Text-field style="Text" layout="Normal">NOTE: Now, we are changing the point of view. We are not longer worried about &quot;finding roots&quot;, but we are studing how Newton's iterates behave.</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L233" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L234" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L203" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L164" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">EXERCISE:  Find all the roots of the above map f. Denote one of them as r1, another as r2 and the third one as r3 in any order you want. Define a procedure that takes as an input a complex number z, computes 50 iterates of z by Newton's method, and returns 0.1 if the result  is close to r1, 0.2 if it is close to r2 and 0.3 if it is close to r3.</Text-field>
</Input>
</Group>
<Group labelreference="L208" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">sol:=fsolve(f(x),x,complex);</Text-field>
</Input>
</Group>
<Group labelreference="L245" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">r1:=sol[1];
r2:=sol[2];
r3:=sol[3];
</Text-field>
</Input>
</Group>
<Group labelreference="L246" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L247" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L223" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton3:=proc(x0,y0)
  local x, i;
  global N, r1,r2,r3;
  x:=x0+y0*I;
  for i from 1 to 10 do
     x:=evalf(N(x));
  od;
  if( abs(x- r1)&lt; 0.1) then return 0.1 ;
  else if( abs(x- r2)&lt; 0.1) then return 0.2;
  else if( abs(x- r3)&lt; 0.1) then return 0.3 end if; end if; end if; 
  end:</Text-field>
</Input>
<Input>
<Text-field prompt="&gt; " style="Maple Input" linebreak="space" spaceabove="0" rightmargin="0" bullet="none" firstindent="0" linespacing="0.0" pagebreak-before="false" leftmargin="0" alignment="left" initial="0" spacebelow="0"></Text-field>
</Input>
<Input>
<Text-field prompt="&gt; " style="Maple Input" linebreak="space" spaceabove="0" rightmargin="0" bullet="none" firstindent="0" linespacing="0.0" pagebreak-before="false" leftmargin="0" alignment="left" initial="0" spacebelow="0"></Text-field>
</Input>
</Group>
<Group labelreference="L222" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton3(-4,-3);</Text-field>
</Input>
</Group>
<Group labelreference="L221" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newton3(-0.5,1);</Text-field>
</Input>
</Group>
<Group labelreference="L220" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot3d(newton3, -2..2,-2..2,axes=boxed,style=patchcontour);</Text-field>
</Input>
</Group>
<Group labelreference="L219" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(plots):</Text-field>
</Input>
</Group>
<Group labelreference="L218" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">densityplot(newton3, -2..2,-2..2, grid=[100,100],colorstyle=HUE,style=patchnogrid);</Text-field>
</Input>
</Group>
<Group labelreference="L217" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">color1:=proc(x,y)
return x;
end proc:


</Text-field>
</Input>
</Group>
<Group labelreference="L248" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">densityplot(color1,-2..2,-2..2,colorstyle=HUE);</Text-field>
</Input>
</Group>
<Group labelreference="L259" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F:=(x,y)-&gt;y;</Text-field>
</Input>
</Group>
<Group labelreference="L249" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">color2:=proc(x,y)
return y;
end proc:
densityplot(color2,-2..2,-2..2,colorstyle=HUE);</Text-field>
</Input>
</Group>
<Group labelreference="L258" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">densityplot(F(x,y),x=-2..2,y=-2..2,colorstyle=HUE);</Text-field>
</Input>
</Group>
<Group labelreference="L257" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L256" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L254" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L255" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L253" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L250" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">color2:=proc(x,y)
return y;
end proc:
densityplot(color2,-3..10,-20..23,colorstyle=HUE);</Text-field>
</Input>
</Group>
<Group labelreference="L251" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">densityplot(color2,-3..10,0..1,colorstyle=HUE);</Text-field>
</Input>
</Group>
<Group labelreference="L252" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">densityplot(color2,-3..10,0.2..0.6,colorstyle=HUE);</Text-field>
</Input>
</Group>
<Group labelreference="L216" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">How do you think Maple does the coloring?</Text-field>
<Text-field style="Text" layout="Normal">Here is the idea: Remeber that we have a procedure &quot;color&quot; that takes an ordered pair of  real numbers (x,y) and return another real number r.</Text-field>
<Text-field style="Text" layout="Normal">If the all the values that output of the procedure are between 0 and 1, then Maple paint in read all points (x,y) such that color(x,y) is equal (or very close ) to zero, in orange all the points such that color(x,y) is 0.1, and so on.</Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
<Text-field style="Text" layout="Normal">If the values of the output of the procedure are between the real numbers a and b, (and a and b are reached), then first the interval [a, b] is scaled to [0,1] then the points are painted as before. Hence, for instance, the points such that n(x,y)=a, are going to be painted in red (as if we had n(x,y)=0)   </Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L215" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L214" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L213" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L212" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Definition A fixed point of a  function G  is an element u in the domain of G, such that N(u)=u. Example : 1/2 is a fixed point of the function G(x)=-x+1.</Text-field>
<Text-field style="Text" layout="Normal">(Note that a function can have fixed points if and only if the range is included in the domain.)</Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L211" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">EXERCISE: Find the fixed points of the map h(x)=x^4+x-1</Text-field>
<Text-field style="Text" layout="Normal">a. assuming that the domain of h is the real numbers</Text-field>
<Text-field style="Text" layout="Normal">b. assuming that the domain of h is the complex numbers</Text-field>
</Input>
</Group>
<Group labelreference="L210" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L187" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L167" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">EXERCISE: Find the fixed points of the Newton function associated to the polynomial x^3-1, What can you say about those fixed points? </Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>