SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

Derivação
Whom takes fun only as fun.
And serious only seriously.
Misunderstood both.
Piet Hein
< Simétrica | Resíduos | 2a Derivada >

Erros ou Resíduos

  • \(x\) estimado, \(x_e,\) analítica, \(x_a;\)
  • Resíduo Absoluto:
    \(r_a=|x_{e}-x_{a}|\)
  • Resíduo Relativo, \(x_{a} \neq 0:\)
    \(r_r= \left| \frac{ x_{e}-x_{a} } { x_{a} } \right|\)

    Python Listing: ../../../Code/Residual.py.
    def R_Abs(xa,xe):
        #Absolute Residual
        return abs(   1.0*(xa-xe)   )
    
    def R_Rel(xa,xe):
        #Relative Residual
        if ( 1.0*xa!=0.0 ):
            return abs(   1.0*(xa-xe)/(1.0*xa)   )
    
        return 0.0
    
    
    
    Output from: /usr/bin/python ../../../Code/Residual.py
< Simétrica | Resíduos | 2a Derivada >
Messages:
0 secs.