Ask Your Question

Periodic_1_6's profile - activity

2024-04-06 19:27:00 +0200 received badge  Famous Question (source)
2023-07-20 10:54:08 +0200 received badge  Popular Question (source)
2023-06-17 22:42:15 +0200 marked best answer Error with solve: unable to make sense of Maxima expression

Why does sagemath 9.2 give me an error ?

TypeError: unable to make sense of Maxima expression

import time
Start_Time = time.time()
var('N p x y c M H W V')

eq0 = N-187 == 0

eq1 = (sqrt((16*c^4*N+24*c^4+c^2*M+c^2-2*c^2*sqrt(24*c^2+M))/(c^4))-8)/16 - x == 0
eq2 = (sqrt((16*c^4*N+24*c^4+c^2*H+c^2+2*c^2*sqrt(24*c^2+H))/(c^4))-8)/16 - x ==0
eq3 = (4*x+2)^2-(2*y-1)^2 - N == 0
eq4 = M*(8*y^2-8*y-1) - (8*W^2-8*W-1) == 0
eq5 = H*(8*y^2-8*y-1) - (8*V^2-8*V-1) == 0
eq6 = (W-V) - (2*y-1) ==0
eq7 = 4*x+1-2*(y-1)-p == 0

eq8 = 1 - c == 0

solutions = solve([eq0,eq1,eq2,eq3,eq4,eq5,eq6,eq7,eq8],N,p,x,y,c,M,H,W,V)
sol = solutions 
Execution_Time = time.time() - Start_Time
print (Execution_Time)
print(sol)
2023-06-17 22:41:20 +0200 commented answer Error with solve: unable to make sense of Maxima expression

@Emmanuel Charpentier thank you

2023-06-17 13:25:44 +0200 commented question Error with solve: unable to make sense of Maxima expression

But Is version 10.0 ?

2023-06-17 13:11:03 +0200 commented question Error with solve: unable to make sense of Maxima expression

Could you please post the solutions?

2023-06-17 12:41:30 +0200 received badge  Popular Question (source)
2023-06-17 12:04:16 +0200 asked a question Error with solve: unable to make sense of Maxima expression

Why does sagemath 9.2 give me an error ? Why does sagemath 9.2 give me an error ? TypeError: unable to make sense of Ma

2023-06-06 12:40:54 +0200 commented answer How to reduce in sagemath a 40th degree equation to a 5th degree equation with a 6th degree equation? All three equations are mod 9

@slelievre I did not understand! can't it be done with sagemath?

2023-06-06 10:48:33 +0200 commented question How to reduce in sagemath a 40th degree equation to a 5th degree equation with a 6th degree equation? All three equations are mod 9

@Max Alekseyev is there a way in sagemath to reduce mod 9 coefficients? Also

2023-06-05 22:10:22 +0200 asked a question How to reduce in sagemath a 40th degree equation to a 5th degree equation with a 6th degree equation? All three equations are mod 9

How to reduce in sagemath a 40th degree equation to a 5th degree equation with a 6th degree equation? All three equation

2023-05-07 17:51:05 +0200 received badge  Notable Question (source)
2023-02-16 10:29:36 +0200 edited question What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

What mathematical procedure does sagemath use to solve these types of systems? Is there a better process? UPDATE: I tri

2023-01-11 10:09:07 +0200 received badge  Notable Question (source)
2022-10-11 17:05:35 +0200 commented answer In SageMath 9.2 :"TypeError: unable to make sense of Maxima expression" .What does it mean ?

thank you !

2022-10-11 17:04:26 +0200 commented answer In SageMath 9.2 :"TypeError: unable to make sense of Maxima expression" .What does it mean ?

sorry! thank you

2022-10-11 11:50:25 +0200 asked a question In SageMath 9.2 :"TypeError: unable to make sense of Maxima expression" .What does it mean ?

In SageMath 9.2 :"TypeError: unable to make sense of Maxima expression" .What does it mean ? is there anyone who would h

2022-09-27 11:02:58 +0200 commented answer Can the coefficients of these two pairs of polynomials be reduced? If yes, how do you do it with sagemath?

@John Palmieri there were errors, now it is corrected excuse me

2022-09-27 11:02:06 +0200 commented answer Can the coefficients of these two pairs of polynomials be reduced? If yes, how do you do it with sagemath?

@John Palmier there were errors, now it is corrected excuse me

2022-09-27 11:00:15 +0200 edited question Can the coefficients of these two pairs of polynomials be reduced? If yes, how do you do it with sagemath?

Can the coefficients of these two pairs of polynomials be reduced? If yes, how do you do it with sagemath? Can the coef

2022-09-26 16:53:48 +0200 asked a question Can the coefficients of these two pairs of polynomials be reduced? If yes, how do you do it with sagemath?

Can the coefficients of these two pairs of polynomials be reduced? If yes, how do you do it with sagemath? Can the coef

2022-08-25 13:10:48 +0200 received badge  Popular Question (source)
2022-08-25 12:52:27 +0200 received badge  Notable Question (source)
2022-08-25 11:37:57 +0200 received badge  Notable Question (source)
2022-06-17 18:08:07 +0200 commented question Is there a way in sagemath assisted by mathematics to find only and exclusively the first valid solution without calculating the other solutions?

Please reopen

2022-05-11 09:42:19 +0200 received badge  Self-Learner (source)
2022-05-11 09:42:19 +0200 received badge  Teacher (source)
2022-05-11 08:27:53 +0200 answered a question What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

I was able to cut the time on my computer in half The first OUTPUT was (x, y, p, a, A, b, B, c, C, d, D, f, z, Z, w,

2022-04-28 06:09:19 +0200 received badge  Enthusiast
2022-04-27 21:39:21 +0200 received badge  Popular Question (source)
2022-04-22 13:34:36 +0200 commented answer What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

correct is eq6 = y + (q-p) / 2 -a == 0 but we are missing some other changes

2022-04-22 12:33:21 +0200 commented answer What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

there is an error in eq6

2022-04-22 11:11:15 +0200 answered a question What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

@Max Alekseyev I did it in O (log_2) I finally solved the factorization problem This is the system for factoring N = 17

2022-04-21 14:23:05 +0200 marked best answer How do I filter only integer solutions in sagemath?

How do I filter only integer solutions in sagemath?

import time
Start_Time = time.time()
var('x y N M F f G g L l Q q S s U u')

eq0 = N-1019 == 0 



eq3 = (32*((2*(3*3/4*M+1)-3*(-x)+1)/24)+3*(2*f-1)^2-3)/8-F==0
eq4 = ((2*(3*3/4*M+1)-3*(-x)+1)/24)+3/4*M- F == 0
eq5 = (32*((2*(3*F+1)-3*(f)+1)/24)+3*(2*g-1)^2-3)/8-G==0
eq6 = ((2*(3*F+1)-3*(f)+1)/24)+3/4*M- G == 0
eq7 = (32*((2*(3*G+1)-3*(g)+1)/24)+3*(2*l-1)^2-3)/8-L==0
eq8 = ((2*(3*G+1)-3*(g)+1)/24)+3/4*M- L == 0
eq9 = (32*((2*(3*L+1)-3*(l)+1)/24)+3*(2*q-1)^2-3)/8-Q==0
eq10 = ((2*(3*L+1)-3*(l)+1)/24)+3/4*M- Q == 0
eq11 = (32*((2*(3*Q+1)-3*(q)+1)/24)+3*(2*s-1)^2-3)/8-S==0
eq12 = ((2*(3*Q+1)-3*(q)+1)/24)+3/4*M- S == 0
eq13 = (32*((2*(3*S+1)-3*(s)+1)/24)+3*(2*u-1)^2-3)/8-U==0
eq14 = ((2*(3*S+1)-3*(s)+1)/24)+3/4*M- U == 0

eq15 =u+1==0


eq16 = (N-3)/8+y*(y-1)/2-M == 0

eq17 = 2*x*(x+1)-M == 0 

solutions = solve([eq0,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12,eq13,eq14,eq15,eq16,eq17],x,y,N,M,F,f,G,g,L,l,Q,q,S,s,U,u)
sol = solutions  
Execution_Time = time.time() - Start_Time
print (Execution_Time)
print(sol)
2022-04-20 11:19:34 +0200 edited question How do I filter only integer solutions in sagemath?

How do I filter only integer solutions in sagemath? How do I filter only integer solutions in sagemath? import time Sta

2022-04-20 11:18:21 +0200 edited question How do I filter only integer solutions in sagemath?

How do I filter only integer solutions in sagemath? import time Start_Time = time.time() var('x y N M F

2022-04-20 11:17:34 +0200 edited question How do I filter only integer solutions in sagemath?

How do I filter only integer solutions in sagemath? import time Start_Time = time.time() var('x y N M F f G g L

2022-04-20 11:17:00 +0200 edited question How do I filter only integer solutions in sagemath?

How do I filter only integer solutions in sagemath? import time Start_Time = time.time() var('x y N M F f G g L

2022-04-20 11:16:00 +0200 edited question How do I filter only integer solutions in sagemath?

How do I filter only integer solutions in sagemath? import time Start_Time = time.time() var('x y N M F f G g L

2022-04-20 11:10:08 +0200 asked a question How do I filter only integer solutions in sagemath?

How do I filter only integer solutions in sagemath? import time Start_Time = time.time() var('x y N M D d F f G g L l Q

2022-04-19 19:43:03 +0200 commented answer What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

@Max Alekseyev thank you

2022-04-19 10:44:26 +0200 commented answer What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

@Max Alekseyev One last favor, kindly. As you may have noticed, the system will have 12+4*[Integer_Part[log_2 (p+q-4)/8

2022-04-18 20:32:27 +0200 marked best answer What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

UPDATE: I tried to solve it in linear time i.e. the factorization of N happens in log N Italian language https://www.academia.edu/96992548/Fat...

I found a system (which varies its length as a function of (p + q-4) / 8) which generates all the numbers N = 8 * G + 3 = p * q so by inserting our number to factor in the underlying system instead of N we will have our p, factor of N.

System example up to x = (p + q-4) / 8 <= 3

var('x y p a A b B c z Z w W N v V')

eq0 = N -27 == 0

eq1 = (2*(3*x+1)-3*(a)+1)/24+3/2*x*(x+1) - A == 0
eq2 = A+b*(b-1)/2 - (2*x*(x+1)) == 0
eq3 = (2*(3*(A)+1)-3*(b)+1)/24+3/2*x*(x+1) - B == 0
eq4 = B+c*(c-1)/2 - (2*x*(x+1)) == 0
eq5 = (2*(3*(B)+1)-3*(c)+1)/24+3/2*x*(x+1) - (2*x*(x+1)) == 0
eq6 = a-(2*x+1) == 0

eq7 = (2*(3*(N-3)/8+1)-3*(z)+1)/24+3/2*x*(x+1) -((N-3)/8+Z) == 0
eq8 = (N-3)/8+z*(z-1)/2 - (2*x*(x+1)) == 0
eq9 = (2*(3*((N-3)/8+Z)+1)-3*(w)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W) == 0
eq10 = (N-3)/8+Z+w*(w-1)/2 - (2*x*(x+1)) == 0
eq11 = (2*(3*((N-3)/8+Z+W)+1)-3*(v)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W+V) == 0
eq12 = (N-3)/8+Z+W+v*(v-1)/2 - (2*x*(x+1)) == 0
eq13 = (N-3)/8+Z+W+V - (2*x*(x+1)) == 0

eq14 = (N-3)/8+y*(y-1)/2 - 2*x*(x+1) == 0
eq15 = 4*x+1-2*(y-1)-p == 0


solutions = solve([eq0,eq1,eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12,eq13,eq14,eq15],x,y,p,a,A,b,B,c,z,Z,w,W,N,v,V)
sol = solutions 
print(sol)

System example up to x = (p + q-4) / 8 <= 7

var('x y p a A b B c C d z Z w W N v V u U')

eq0 = N-59 == 0

eq1 = (2*(3*x+1)-3*(a)+1)/24+3/2*x*(x+1) - A == 0
eq2 = A+b*(b-1)/2 - (2*x*(x+1)) == 0
eq3 = (2*(3*(A)+1)-3*(b)+1)/24+3/2*x*(x+1) - B == 0
eq4 = B+c*(c-1)/2 - (2*x*(x+1)) == 0
eq5 = (2*(3*(B)+1)-3*(c)+1)/24+3/2*x*(x+1) - C == 0
eq6 = C+d*(d-1)/2 - (2*x*(x+1)) == 0
eq7 = (2*(3*(C)+1)-3*(d)+1)/24+3/2*x*(x+1) - (2*x*(x+1)) == 0
eq8 = a-(2*x+1) == 0

eq9 = (2*(3*(N-3)/8+1)-3*(z)+1)/24+3/2*x*(x+1) -((N-3)/8+Z) == 0
eq10 = (N-3)/8+z*(z-1)/2 - (2*x*(x+1)) == 0
eq11 = (2*(3*((N-3)/8+Z)+1)-3*(w)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W) == 0
eq12 = (N-3)/8+Z+w*(w-1)/2 - (2*x*(x+1)) == 0
eq13 = (2*(3*((N-3)/8+Z+W)+1)-3*(v)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W+V) == 0
eq14 = (N-3)/8+Z+W+v*(v-1)/2 - (2*x*(x+1)) == 0
eq15 = (2*(3*((N-3)/8+Z+W+V)+1)-3*(u)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W+V+U) == 0
eq16 = (N-3)/8+Z+W+V+u*(u-1)/2 - (2*x*(x+1)) == 0
eq17 = (N-3)/8+Z+W+V+U - (2*x*(x+1)) == 0

eq18 = (N-3)/8+y*(y-1)/2 - 2*x*(x+1) == 0
eq19 = 4*x+1-2*(y-1)-p == 0


solutions = solve([eq0,eq1,eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12,eq13,eq14,eq15,eq16,eq17,eq18,eq19],x,y,p,a,A,b,B,c,C,d,z,Z,w,W,N,v,V,u,U)
sol = solutions 
print(sol)

System example up to x = (p + q-4) / 8 <= 15

var('x y p a A b B c C d D f z Z w W N v V u U t T')

eq0 = N - 123 == 0

eq1 = (2*(3*x+1)-3*(a)+1)/24+3/2*x*(x+1) - A == 0
eq2 = A+b*(b-1)/2 - (2*x*(x+1)) == 0
eq3 = (2*(3*(A)+1)-3*(b)+1)/24+3/2*x*(x+1) - B == 0
eq4 = B+c*(c-1)/2 - (2*x*(x+1)) == 0
eq5 = (2*(3*(B)+1)-3*(c)+1)/24+3/2*x*(x+1) - C == 0
eq6 = C+d*(d-1)/2 - (2*x*(x+1)) == 0
eq20 = (2*(3*(C)+1)-3*(d)+1)/24+3/2*x*(x+1) - D == 0
eq21 = D+f*(f-1)/2 - (2*x*(x+1)) == 0
eq7 = (2*(3*(D)+1)-3*(f)+1)/24+3/2*x*(x+1) - (2*x*(x+1)) == 0
eq8 = a-(2*x+1) == 0

eq9 = (2*(3*(N-3)/8+1)-3*(z)+1)/24+3/2*x*(x+1) -((N-3)/8+Z) == 0
eq10 = (N-3)/8+z*(z-1)/2 - (2*x*(x+1)) == 0
eq11 = (2*(3*((N-3)/8+Z)+1)-3*(w)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W) == 0
eq12 = (N-3)/8+Z+w*(w-1)/2 - (2*x*(x+1)) == 0
eq13 = (2*(3*((N-3)/8+Z+W)+1)-3*(v)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W+V) == 0
eq14 = (N-3)/8+Z+W+v*(v-1)/2 - (2*x*(x+1)) == 0
eq15 = (2*(3*((N-3)/8+Z+W+V)+1)-3*(u)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W+V+U) == 0
eq16 = (N-3)/8+Z+W+V+u*(u-1)/2 - (2*x*(x+1)) == 0
eq22 = (2*(3*((N-3)/8+Z+W+V+U)+1)-3*(t)+1)/24+3/2*x*(x+1) -((N-3)/8+Z+W+V+U+T) == 0
eq23 = (N-3)/8+Z+W+V+U+t*(t-1)/2 - (2*x*(x+1)) == 0
eq17 = (N-3)/8+Z+W+V+U+T - (2*x*(x+1)) == 0

eq18 = (N-3)/8+y*(y-1)/2 - 2*x*(x+1) == 0
eq19 = 4*x+1-2*(y-1)-p == 0


solutions = solve([eq0,eq1,eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12,eq13,eq14,eq15,eq16,eq17,eq18,eq19,eq20,eq21,eq22,eq23],x,y,p,a,A,b,B,c,C,d,D,f,z,Z,w,W,N,v,V,u,U,t,T)
sol = solutions 
print(sol)

What mathematical procedure does sagemath use to solve these types of systems?

Is there a better process?

2022-04-16 17:55:35 +0200 commented answer What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

@Max Alekseyev do you have any advice for me?

2022-04-15 11:54:10 +0200 asked a question What mathematical procedure does sagemath use to solve these types of systems? Is there a better process?

What mathematical procedure does sagemath use to solve these types of systems? Is there a better process? I found a sys