Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 12 years ago

jtaa gravatar image

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for k as defined above.

can somebody help me with this?

click to hide/show revision 2
No.2 Revision

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for k ck as defined above.

can somebody help me with this?

click to hide/show revision 3
No.3 Revision

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for ck as defined above.

can somebody help me with this?

click to hide/show revision 4
require help to reduce matrix multiplication time

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for ck as defined above.

can somebody help me with this?

EDIT: I need further help (SEE BELOW)

what i want to do is add some more code (to tobias welch's answer) that will for example calculate c(4,A), but i dont want sage to do the calculations for A4 again - i want it to do A3A i.e. use the fact that it already calculated A3 for c(3,A) to help reduce the calculation time. So, i guess i want a recurrence relation.

click to hide/show revision 5
want to reduce matrix multiplication time.. using recurrence relation

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for ck as defined above.

can somebody help me with this?

EDIT: I need further help (SEE BELOW)

what i want to do is add some more code (to tobias welch's answer) that will for example calculate c(4,A), but i dont want sage to do the calculations for A4 again - i want it to do A3A i.e. use the fact that it already calculated A3 for c(3,A) to help reduce the calculation time. So, i guess i want what im after is a recurrence relation.

click to hide/show revision 6
No.6 Revision

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for ck as defined above.

can somebody help me with this?

EDIT: I need further help (SEE BELOW)

what i want to do is add some more code (to tobias welch's answer) that will for example calculate c(4,A), but i dont want sage to do the calculations for A4 again - i want it to do A3A i.e. use the fact that it already calculated A3 for c(3,A) to help reduce the calculation time. So, i guess what im after is a recurrence relation.relation. is this possible?

click to hide/show revision 7
No.7 Revision

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for ck as defined above.

can somebody help me with this?

EDIT: I need further help (SEE BELOW)

what i want to do is add some more code (to tobias welch's answer) that will for example calculate c(4,A), but i dont want sage to do the calculations for A4 - i want it to do A3A i.e. use the fact that it already calculated A3 for c(3,A) to help reduce the calculation time. So, i guess what im after is a recurrence relation. is this possible?

click to hide/show revision 8
No.8 Revision

Newton's identities in Sage

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for ck as defined above.

can EDIT I actually need: sk=[c1sk1+...+ck1s1kck] ? could somebody help me with this?to change tobias welch's answer so that it computes sk instead of ck?

click to hide/show revision 9
No.9 Revision

Newton's identities in Sage

EDIT
I actually need: sk=[c1sk1+...+ck1s1kck] ? could somebody help me to change tobias welch's answer so that it computes sk instead of ck?
END EDIT

I'm combining netwon's identities with le verrier's algorithm

I need some help coding the following on python.

ck=1k(sk+c1sk1+c2sk2++ck1s1)
where sk=Tr(Ak), for some square matrix A, k=1,2,3,,n

So, i'd like to type in c(k) and python spits out the value for ck as defined above.

EDIT I actually need: sk=[c1sk1+...+ck1s1kck] ? could somebody help me to change tobias welch's answer so that it computes sk instead of ck?