Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 6 years ago

MKS gravatar image

How to solve this system of equation in sage?

How to solve this system of equations in sage?

x1+l1x2+l21x3++lk1xk=c1+r.

x1+l2x2+l22x3++lk2xk=c2+r2

x1+lkx2+l2kx3++lkkxk=ck+rk

where li's are different positive integers and ci,r are integers in [0,256]

How to solve this system of equation in sage?

How to solve this system of equations in sage?

x1+l1x2+l21x3++lk1xk=c1+r.

x1+l2x2+l22x3++lk2xk=c2+r2

x1+lkx2+l2kx3++lkkxk=ck+rk

where li's are different positive integers and ci,r are integers in [0,256]

In particular, we can solve with sage. Here is the code :
a0,a1,a2,b3,b4,b5,r,l1,l2,l3=var(a0,a1,a2,b3,b4,b5,r,l1,l2,l3)

$X=solve([a0+l1a1+l1^2a2==b3+r^3, a0+l2a1+l2^2a2==b4+r^2,a0+l3a1+l3^2a2==b5+r^1], a0,a1, a2)$.

How to solve this system of equation in sage?

How to solve this system of equations in sage?

x1+l1x2+l21x3++lk1xk=c1+r.

x1+l2x2+l22x3++lk2xk=c2+r2

x1+lkx2+l2kx3++lkkxk=ck+rk

where li's are different positive integers and ci,r are integers in [0,256]

In particular, we can solve with sage. Here is the code :

$a0,
a0, a1,a2,b3,b4, b5,r,l1,l2,l3 = var('a0,a1,a2,b3,b4,b5, r,l1,l2,l3')$

r,l1,l2,l3')

$X=solve([a0+l1a1+l1^2a2==b3+r^3, a0+l2a1+l2^2a2==b4+r^2,a0+l3a1+l3^2a2==b5+r^1], X=solve([a0+l1*a1+l1^2*a2==b3+r^3, a0+l2*a1+l2^2*a2==b4+r^2,a0+l3*a1+l3^2*a2==b5+r^1], a0,a1, a2)$.

a2)

How to solve this system of equation in sage?

How to solve this system of equations in sage?

$x_1+l_1x_2+l_1^2x_3+\dots+l_1^kx_k=c_1+r $x_1+l_1x_2+l_1^2x_3+\dots+l_1^{k-1}x_k=c_1+r $.

x1+l2x2+l22x3++lk2xk=c2+r2x1+l2x2+l22x3++lk12xk=c2+r2

x1+lkx2+l2kx3++lkkxk=ck+rkx1+lkx2+l2kx3++lk1kxk=ck+rk

where li's are different positive integers and ci,r are integers in [0,256]

In particular, we can solve with sage. Here is the code :

a0, a1,a2,b3,b4, b5,r,l1,l2,l3 = var('a0,a1,a2,b3,b4,b5, r,l1,l2,l3')

X=solve([a0+l1*a1+l1^2*a2==b3+r^3, a0+l2*a1+l2^2*a2==b4+r^2,a0+l3*a1+l3^2*a2==b5+r^1], a0,a1, a2)

How to solve this system of equation in sage?

How to solve this system of equations in sage?

x1+l1x2+l21x3++lk11xk=c1+r.

x1+l2x2+l22x3++lk12xk=c2+r2

x1+lkx2+l2kx3++lk1kxk=ck+rk

where li's are different positive integers and ci,r are integers in [0,256]

In particular, we can solve with sage. Here is the code :

a0, a1,a2,b3,b4, b5,r,l1,l2,l3 = var('a0,a1,a2,b3,b4,b5, r,l1,l2,l3')

X=solve([a0+l1*a1+l1^2*a2==b3+r^3, a0+l2*a1+l2^2*a2==b4+r^2,a0+l3*a1+l3^2*a2==b5+r^1], a0,a1, a2)