Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SageMath cannot solve this system of equations?

I am trying to use sagemath to solve a system of equations. But it doesn't give a solution. The equations has a solution when I checked using other software. My codes are:

n1=100
n2=100
x = {(i, j): var("x_{}_{}".format(i, str(j).replace('-', 'm')),
             latex_name="x_{{{},{}}}".format(i, j))
     for i in (1 .. n1) for j in (-2*n2 .. 2*n2)}

n1=100
n2=100
y = {(i, j): var("y_{}_{}".format(i, str(j).replace('-', 'm')),
             latex_name="y_{{{},{}}}".format(i, j))
     for i in (1 .. n1) for j in (-2*n2 .. 2*n2)}

r1=[-y_1_1 + x_2_1/x_2_2, -y_1_2 + x_2_2/x_2_3, -y_1_3 + x_1_1/x_1_2, -y_2_1 + x_1_2/x_1_3, x_3_1 - y_2_2, 
x_1_2*x_2_2*x_3_2 - y_2_3, x_1_3*x_2_3*x_3_3/x_1_1 - y_3_1, x_2_3*x_3_3 - y_3_2, x_1_3*x_2_3*x_3_2 - y_3_3]
va=[x_1_1, x_1_2, x_1_3, x_2_1, x_2_2, x_2_3, x_3_1, x_3_2, x_3_3]
solve(r1, va, solution_dict=True)

Is there some way to find solutions to these equations in SageMath? Thank you very much.

SageMath cannot solve this system of equations?

I am trying to use sagemath to solve a system of equations. But it doesn't give a solution. The equations has a solution when I checked using other software. My codes are:

n1=100
n2=100
x = {(i, j): var("x_{}_{}".format(i, str(j).replace('-', 'm')),
             str(j)), latex_name="x_{{{},{}}}".format(i, j))
     for i in (1 .. n1) 3) for j in (-2*n2 .. 2*n2)}

n1=100
n2=100
(1 .. 3)}

y = {(i, j): var("y_{}_{}".format(i, str(j).replace('-', 'm')),
             str(j)), latex_name="y_{{{},{}}}".format(i, j))
     for i in (1 .. n1) 3) for j in (-2*n2 .. 2*n2)}

r1=[-y_1_1 + x_2_1/x_2_2, (1 .. 3)}

va = list(x.values())

r1 = [-y_1_1 + x_2_1/x_2_2,
      -y_1_2 + x_2_2/x_2_3, x_2_2/x_2_3,
      -y_1_3 + x_1_1/x_1_2, x_1_1/x_1_2,
      -y_2_1 + x_1_2/x_1_3, x_1_2/x_1_3,
      x_3_1 - y_2_2, 
y_2_2,
      x_1_2*x_2_2*x_3_2 - y_2_3, y_2_3,
      x_1_3*x_2_3*x_3_3/x_1_1 - y_3_1, y_3_1,
      x_2_3*x_3_3 - y_3_2, y_3_2,
      x_1_3*x_2_3*x_3_2 - y_3_3]
va=[x_1_1, x_1_2, x_1_3, x_2_1, x_2_2, x_2_3, x_3_1, x_3_2, x_3_3]
 solve(r1, va, solution_dict=True)

Is there some way to find solutions to these equations in SageMath? Thank you very much.

SageMath cannot solve this system of equations?

I am trying to use sagemath to solve a system of equations. But it doesn't give a solution. The equations has a solution when I checked using other software. My codes are:

x = {(i, j): var("x_{}_{}".format(i, str(j)), latex_name="x_{{{},{}}}".format(i, j))
var(f'x_{i}_{j}', latex_name=f'x_{{{i},{j}}}')
     for i in (1 .. 3) for j in (1 .. 3)}

y = {(i, j): var("y_{}_{}".format(i, str(j)), latex_name="y_{{{},{}}}".format(i, j))
var(f'y_{i}_{j}', latex_name=f'y_{{{i},{j}}}')
     for i in (1 .. 3) for j in (1 .. 3)}

va = list(x.values())

r1 = [-y_1_1 + x_2_1/x_2_2,
      -y_1_2 + x_2_2/x_2_3,
      -y_1_3 + x_1_1/x_1_2,
      -y_2_1 + x_1_2/x_1_3,
      x_3_1 - y_2_2,
      x_1_2*x_2_2*x_3_2 - y_2_3,
      x_1_3*x_2_3*x_3_3/x_1_1 - y_3_1,
      x_2_3*x_3_3 - y_3_2,
      x_1_3*x_2_3*x_3_2 - y_3_3]

solve(r1, va, solution_dict=True)

Is there some way to find solutions to these equations in SageMath? Thank you very much.