Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem using Taylor several times

I have a sage worksheet using small functions such as def vMatrix(M): Lmat=[] for i in [0..1]: for j in [0..1]: Lmat.append(M.subs(y==1-m^2-m^4)[i,j].taylor(m,0,4)) return Matrix(2,Lmat)

At the beginning, it works perfectly (computing approximations of matrices with parameters) but after using it several times, it stops computing the Taylor expansion of the coefficients, and simply returns the matrix.

I'm getting crazy with that :(

Does someone has an idea on what's happening?

Thx Leo

Problem using Taylor several times

I have a sage worksheet using small functions such as

def vMatrix(M): Lmat=[] for i in [0..1]: for j in [0..1]: Lmat.append(M.subs(y==1-m^2-m^4)[i,j].taylor(m,0,4)) return Matrix(2,Lmat)

At the beginning, it works perfectly (computing approximations of matrices with parameters) but after using it several times, it stops computing the Taylor expansion of the coefficients, and simply returns the matrix.

I'm getting crazy with that :(

Does someone has an idea on what's happening?

Thx Leo

Problem using Taylor several times

I have a sage worksheet using small functions such as

def vMatrix(M): Lmat=[] for i in [0..1]: for j in [0..1]: Lmat.append(M.subs(y==1-m^2-m^4)[i,j].taylor(m,0,4)) return Matrix(2,Lmat)

At the beginning, it works perfectly (computing approximations of matrices with parameters) but after using it several times, it stops computing the Taylor expansion of the coefficients, and simply returns the matrix.

I'm getting crazy with that :(

Does someone has an idea on what's happening?

Thx Leo

click to hide/show revision 4
None

Problem using Taylor several times

I have a sage worksheet using small functions such as

def vMatrix(M):
    Lmat=[]
    for i in [0..1]: 
        for j in [0..1]:
            Lmat.append(M.subs(y==1-m^2-m^4)[i,j].taylor(m,0,4))
    return Matrix(2,Lmat)

Matrix(2,Lmat)

At the beginning, it works perfectly (computing approximations of matrices with parameters) but after using it several times, it stops computing the Taylor expansion of the coefficients, and simply returns the matrix.

I'm getting crazy with that :(

Does someone has an idea on what's happening?

Thx Leo