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

Polinômios
Liberdade é um prato facil de comer.
Mas deficil de digerir
Jean-Jaques Rousseau

Adicionar Polinômios:

Python Listing: ../../../Code/Polynomial.py.
def Polynomias_Add(P,Q):
    degree=max( len(P),len(Q) )
    R=[]
    for i in range( degree ):
        R.append(0.0)
        if (i<len(P)):
            R[i]+=P[i]
            
        if (i<len(Q)):
            R[i]+=Q[i]
            
    return R

Messages:
0 secs.