Ask Your Question
1

W10,Sagemath 8.4 solve() does not give a response

asked 2018-11-12 04:06:28 -0500

ortollj gravatar image

updated 2018-11-12 05:22:37 -0500

why Sagemath solve() does not give a response, and no indication on what it is missing ? (by hand a_1=a_2=3/15)

var('X_1 X_2 a_1 a_2 b Theta')
assume(a_1,'real');assume(a_2,'real')
assume(X_1,'real');assume(X_2,'real')
assume(b,'real') ;assume(Theta,'real')
f_1=2*X_1^2*a_1 + 2*X_1*X_2*a_2 - 2*Theta*X_1 + 2*X_1*b
f_2=2*X_1*X_2*a_1 + 2*X_2^2*a_2 - 2*Theta*X_2 + 2*X_2*b
S=solve ([f_1==0,f_2==0,X_1*X_2==1,Theta*X_1==1,Theta*X_2==1,X_1*X_1==4,X_2*X_2==4,Theta*Theta==4,b==0],a_1,a_2)
show(S)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-11-12 07:01:15 -0500

tmonteil gravatar image

updated 2018-11-12 07:01:31 -0500

Even on Linux there is no solution : since X_1^2==4 and X_2^2==4, then both X_1 and X_2 are even integers, hence it is not possible that X_1*X_2==1.

edit flag offensive delete link more

Comments

Thank you tmonteil, when I have solved these equations by hand, I have not seen these inconsistencies, we do not pay attention to these inconsistencies! ;-). Sagemath is more rigorous.

ortollj gravatar imageortollj ( 2018-11-12 08:12:03 -0500 )edit

Is there a way to get information when "solve()" delivers an empty response?,

kind of "inconsistencies with X_1,X_2 !"

These inconsistencies come from the fact that I have over-simplified these equations in fact it should be E[X_1X_2] E[X_1X_1],E[X_1,Theta]... ...in order to obtain the factors a_1 a_2

ortollj gravatar imageortollj ( 2018-11-12 08:23:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-11-12 04:06:28 -0500

Seen: 68 times

Last updated: Nov 12 '18