--> -->
 
 
<type 'exceptions.IndexError'>
Python 2.7.13: /usr/bin/python
Tue May 6 16:05:58 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/cgi-bin/Slides in ()
     13 cgitb.enable()
     14 
     15 slides=Slides()
=>   16 slides.Run()
     17 
slides = <Slides.Slides instance>, slides.Run = <bound method Slides.Run of <Slides.Slides instance>>
 /usr/local/Python/HTML/__init__.py in Run(self=<Slides.Slides instance>)
    215         html=[]
    216         html=html+self.HTML_Header()
=>  217         html=html+self.HTML_Body()
    218         html=html+self.HTML_Tailer()
    219 
html = ['<!DOCTYPE html>', '<HTML>', ['<HEAD>', [['<TITLE>', 'SmtC: Show me the Code!', '</TITLE>'], '<META content="text/html; charset=utf-8" http-equiv="Content-type">', '<META content="Prof. Dr. Ole Peter Smith, IME/UFG" name="Autor">', '<LINK href="/Slides.css" rel="stylesheet">', '<LINK href="/W3.css" rel="stylesheet">', '<LINK href="/fontawesome-free-5.3.1-web/css/all.css" rel="stylesheet">', ['<SCRIPT src="/Slides.js">', '', '</SCRIPT>'], ['<SCRIPT src="/Karru.js">', '', '</SCRIPT>'], ['<SCRIPT>', 'MathJax = {', ' tex: {', r" inlineMath: [ ['$', '$'], ['[;',';]'], ['\\(', '\\)'] ] ", ' },', ' svg: {', " fontCache: 'global'", ' }', '};', '</SCRIPT>'], ['<SCRIPT id="MathJax-script" src="https://cdn.jsd...mathjax@3/es5/tex-svg.js" type="text/javascript">', '</SCRIPT>'], ['<SCRIPT src="/Slides.js">', '', '</SCRIPT>'], ['<SCRIPT src="/Karru.js">', '', '</SCRIPT>']], '</HEAD>']], self = <Slides.Slides instance>, self.HTML_Body = <bound method Slides.HTML_Body of <Slides.Slides instance>>
 /usr/local/Python/HTML/Body.py in HTML_Body(self=<Slides.Slides instance>)
      7         html=[]
      8         html=html+[ self.XML_Tag_Start("BODY") ]
=>    9         html=html+[ self.HTML_Body_Matrix() ]
     10         html=html+[ self.XML_Tag_End("BODY") ]
     11 
html = ['<BODY>'], self = <Slides.Slides instance>, self.HTML_Body_Matrix = <bound method Slides.HTML_Body_Matrix of <Slides.Slides instance>>
 /usr/local/Python/HTML/Body.py in HTML_Body_Matrix(self=<Slides.Slides instance>)
     27         rhtml=[]
     28         for cellmethods in self.Body_Matrix:
=>   29             rhtml=rhtml+[ self.HTML_Body_Row(n) ]         
     30             n+=1
     31 
rhtml = [['<TR class="Body_Top">', [['<TD class="Body_Top Body_Left">', ['<IMG src="/icons/ufg.png">'], '</TD>'], ['<TD class="Body_Top Body_Center">', [['<DIV class="H1">', 'SmtC: Show me the Code', '</DIV>'], ['<DIV class="H2">', 'Ole Peter Smith', '</DIV>'], ['<DIV class="H3">', 'Instituto de Matem&aacute;tica e Estat&iacute;stica', '</DIV>'], ['<DIV class="H4">', 'Universidade Federal de Goi&aacute;s', '</DIV>'], ['<DIV class="H5">', 'http://www.olesmith.com.br', '</DIV>']], '</TD>'], ['<TD class="Body_Top Body_Right">', ['<IMG src="/icons/ufg.png">'], '</TD>']], '</TR>']], self = <Slides.Slides instance>, self.HTML_Body_Row = <bound method Slides.HTML_Body_Row of <Slides.Slides instance>>, n = 1
 /usr/local/Python/HTML/Body.py in HTML_Body_Row(self=<Slides.Slides instance>, n=1)
     53         rhtml=[]
     54         for cellmethod in self.Body_Matrix[ n ]:
=>   55             rhtml=rhtml+[ self.HTML_Body_Row_Cell(n,m) ]
     56 
     57             m+=1
rhtml = [['<TD class="Body_Middle Body_Left">', ['<UL>', [['<LI>', '<A class="leftmenu" href="?Path=#" title="Show me the Code">SmtC</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=1_Disciplines#" title="Disciplinas">Disciplinas</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=1_Disciplines/1_...title="C\xc3\xa1lculo Num\xc3\xa9rico">C\xc3\xa1lculo Num\xc3\xa9rico</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=1_Disciplines/1_...os, Derivadas e F\xc3\xb3rmula de Taylor">Fun\xc3\xa7\xc3\xb5es</A>', '</LI>']], '</UL>', '<BR>', ['<A class="leftmenu" href="?Path=1_Disciplines/1_...es#" title="Derivadas Num\xc3\xa9ricas">Deriva\xc3\xa7\xc3\xa3o</A>'], ['<UL style="list-style-type:square">', [['<LI>', '<A class="leftmenu" href="?Path=1_Disciplines/1_.../1_Taylor#" title="F\xc3\xb3rmula de Taylor">Taylor</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=1_Disciplines/1_..." title="Aproxima\xc3\xa7\xc3\xa3o Sim\xc3\xa9trica">Sim\xc3\xa9trica</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=1_Disciplines/1_...3_Erros#" title="Erros e Res\xc3\xadduos">Res\xc3\xadduos</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=1_Disciplines/1_...2Derivative#" title="2a Derivada">2a Derivada</A>', '</LI>'], ['<LI>', [...], [...], '</LI>']], '</UL>'], ['<DIV class="Phrase">', 'Somos todos Condenados \xc3\xa0 Liberdade<BR>', ['<DIV class="Author">', 'Jean Paul Sartre', '</DIV>'], '</DIV>']], '</TD>']], self = <Slides.Slides instance>, self.HTML_Body_Row_Cell = <bound method Slides.HTML_Body_Row_Cell of <Slides.Slides instance>>, n = 1, m = 1
 /usr/local/Python/HTML/Body.py in HTML_Body_Row_Cell(self=<Slides.Slides instance>, n=1, m=1)
     70         if ( hasattr(self,cellmethod) ):
     71             method=getattr(self,cellmethod)
=>   72             cellcontent=method()
     73 
     74         args={
cellcontent = 'HTML_Middle_Center: undef', method = <bound method Slides.HTML_Middle_Center of <Slides.Slides instance>>
 /usr/local/Python/HTML/Body.py in HTML_Middle_Center(self=<Slides.Slides instance>)
    139     
    140     def HTML_Middle_Center(self):
=>  141         return self.HTML_Central_Screen()
    142 
    143     ##! 
self = <Slides.Slides instance>, self.HTML_Central_Screen = <bound method Slides.HTML_Central_Screen of <Slides.Slides instance>>
 /usr/local/Python/Slides/__init__.py in HTML_Central_Screen(self=<Slides.Slides instance>)
    190         
    191         html=[]
=>  192         html=html+self.Slide_Cell(paths)
    193 
    194         html=self.HTML_Parse_Html(html,paths)
html = [], self = <Slides.Slides instance>, self.Slide_Cell = <bound method Slides.Slide_Cell of <Slides.Slides instance>>, paths = ['1_Disciplines', '1_CN', '1_Functions', '1_Derivatives', '9_Activities']
 /usr/local/Python/Slides/Slide/Cell/__init__.py in Slide_Cell(self=<Slides.Slides instance>, paths=['1_Disciplines', '1_CN', '1_Functions', '1_Derivatives', '9_Activities'])
     47         )+self.Slide_Cell_Contents_Parse(
     48             paths,
=>   49             self.Slide_Contents_Get(paths)
     50         )
     51 
self = <Slides.Slides instance>, self.Slide_Contents_Get = <bound method Slides.Slide_Contents_Get of <Slides.Slides instance>>, paths = ['1_Disciplines', '1_CN', '1_Functions', '1_Derivatives', '9_Activities']
 /usr/local/Python/Slides/Slide/Cell/__init__.py in Slide_Cell_Contents_Parse(self=<Slides.Slides instance>, paths=['1_Disciplines', '1_CN', '1_Functions', '1_Derivatives', '9_Activities'], contents=['<H1>Atividade #2:</H1>', '', '<OL>', ' <LI>Consideramos as fun\xc3\xa7\xc3\xb5es:', " <OL TYPE='a'>", ' <LI>', r'\(f_{1}(x)=x^2 e^{-x} \)', '</LI>', ' <LI>', r'\(f_{2}(x)=\frac{e^{x}}{x^2}\)', ' </LI>', ' <LI>', r'\(f_{3}(x)=\log{(1+x)}\)', ' </LI>', ' <LI>', r'\(f_{4}(x)=\sqrt{1+x}\)', ' </LI>', ' <LI>', r'\(f_{5}(x)=\sqrt{1+x^2}\)', ' </LI>', ...], options={})
    174 
    175             elif ( re.search('\s*@Code\s+',contents[n], re.IGNORECASE) ):
=>  176                  contents[n]=self.Slide_Cell_Code_Insert(contents[n],paths)
    177                  
    178             elif ( re.search('\s*@Exec\s+',contents[n], re.IGNORECASE) ):
contents = ['<H1>Atividade #2:</H1>', '', '<OL>', ' <LI>Consideramos as fun\xc3\xa7\xc3\xb5es:', " <OL TYPE='a'>", ' <LI>', r'\(f_{1}(x)=x^2 e^{-x} \)', '</LI>', ' <LI>', r'\(f_{2}(x)=\frac{e^{x}}{x^2}\)', ' </LI>', ' <LI>', r'\(f_{3}(x)=\log{(1+x)}\)', ' </LI>', ' <LI>', r'\(f_{4}(x)=\sqrt{1+x}\)', ' </LI>', ' <LI>', r'\(f_{5}(x)=\sqrt{1+x^2}\)', ' </LI>', ...], n = 97, self = <Slides.Slides instance>, self.Slide_Cell_Code_Insert = <bound method Slides.Slide_Cell_Code_Insert of <Slides.Slides instance>>, paths = ['1_Disciplines', '1_CN', '1_Functions', '1_Derivatives', '9_Activities']
 /usr/local/Python/Slides/Slide/Cell/Code/__init__.py in Slide_Cell_Code_Insert(self=<Slides.Slides instance>, content=' @Code Derivatives.py d2_f_1 d2_f', paths=['1_Disciplines', '1_CN', '1_Functions', '1_Derivatives', '9_Activities'], options={})
    250             content=self.Slide_Cell_Code_File(
    251                 content,scriptfile,paths,
=>  252                 args,options={}
    253             )
    254             
args = ['Derivatives.py', 'd2_f_1', 'd2_f'], options = {}
 /usr/local/Python/Slides/Slide/Cell/Code/__init__.py in Slide_Cell_Code_File(self=<Slides.Slides instance>, content=['def d_f_1(f,x,eps=1.0E-6):', ' #Simplest, somewhat naive', ' return (f(x+eps)-f(x))/eps', '', 'def d_f(f,x,eps=1.0E-6):', ' #Better', ' return (f(x+eps)-f(x-eps))/(2.0*eps)', '', 'def d2_f(f,x,eps=1.0E-6):', ' #Apply df (2*2=4 function evalutaions)', ' return (d_f(f,x+eps)-d_f(f,x-eps))/(2.0*eps)', '', 'def d2_f_1(f,x,eps=1.0E-6):', ' return (f(x+eps)+f(x-eps)-2.0*f(x))/(eps)**2'], scriptfile='Derivatives.py', paths=['1_Disciplines', '1_CN', '1_Functions', '1_Derivatives', '9_Activities'], args=['Derivatives.py', 'd2_f_1', 'd2_f'], options={})
    366         if (len(rargs)>0):
    367             content=self.Slide_Cell_Code_File_Index(
=>  368                 scriptfile,content,rargs
    369             )
    370             
scriptfile = 'Derivatives.py', content = ['def d_f_1(f,x,eps=1.0E-6):', ' #Simplest, somewhat naive', ' return (f(x+eps)-f(x))/eps', '', 'def d_f(f,x,eps=1.0E-6):', ' #Better', ' return (f(x+eps)-f(x-eps))/(2.0*eps)', '', 'def d2_f(f,x,eps=1.0E-6):', ' #Apply df (2*2=4 function evalutaions)', ' return (d_f(f,x+eps)-d_f(f,x-eps))/(2.0*eps)', '', 'def d2_f_1(f,x,eps=1.0E-6):', ' return (f(x+eps)+f(x-eps)-2.0*f(x))/(eps)**2'], rargs = ['d2_f_1', 'd2_f']
 /usr/local/Python/Slides/Slide/Cell/Code/__init__.py in Slide_Cell_Code_File_Index(self=<Slides.Slides instance>, scriptfile='Derivatives.py', contents=['def d_f_1(f,x,eps=1.0E-6):', ' #Simplest, somewhat naive', ' return (f(x+eps)-f(x))/eps', '', 'def d_f(f,x,eps=1.0E-6):', ' #Better', ' return (f(x+eps)-f(x-eps))/(2.0*eps)', '', 'def d2_f(f,x,eps=1.0E-6):', ' #Apply df (2*2=4 function evalutaions)', ' return (d_f(f,x+eps)-d_f(f,x-eps))/(2.0*eps)', '', 'def d2_f_1(f,x,eps=1.0E-6):', ' return (f(x+eps)+f(x-eps)-2.0*f(x))/(eps)**2'], rargs=['d2_f_1', 'd2_f'])
    538                 while (i<len(line_nos)):
    539                     i+=1
=>  540                     m=line_nos[i]
    541                     if (m>n): break
    542 
m = 12, line_nos = [0, 4, 8, 12], i = 4

<type 'exceptions.IndexError'>: list index out of range
      args = ('list index out of range',)
      message = 'list index out of range'