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
Viver é algo que se faz agora ou nunca...
Qual você faz?
Piet Hein

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.