Kitonum

21925 Reputation

26 Badges

17 years, 275 days

MaplePrimes Activity


These are replies submitted by Kitonum

@one_man   a := remove(i -> i=x+2, a);

@Markiyan Hirnyk   For earlier versions of Maple yours is not appropriate. For example in M 12

seq(RandomTools[Generate](float(range=-1..1, digits=5, method=uniform)), n=1..20);

       Error, (in RandomTools:-Generate) cannot specify a range crossing the origin

 

So I'm trying to write a version-independent code.

@mahmood180  Yes, I already wrote to you about it.

@mahmood180   Yes, you are right! In the last line of the code replace  M  by  N  (after the sign $) .

What are  а, b  and   in your system?  What are the relations  , , c  with numbers  a1, a2, a3, a4, a5, a6, a7, a8, a9 ?

@Preben Alsholm   Thank you for your response. But still remains unclear what significance has the singularity for this plotting? Why Maple constructs in this way? After all, for any C>0  the curve  1 / (x ^ 2 + y ^ 2) = C  is a circle.

@royadrb8989   What is  G  and which answer you expect?

@Carl Love   You are right. Easy correction of my code gives the same result:

restart;

n:=0:

S:=combinat[permute]([$ 3..14], 5):

for s in S do

F, H, J, K, L:=op(s):

A := 33 - K - L:

B := 1 + F - J:

C := -15 - F + J + K + L:

d := 15 + H - K:

E := 16 - F - H + J + K:

G := 34 - H - J - L:

i := 18 - J - K:

if convert(map(x->is(x>=3 and x<=14), [A,B,C,d,E,G,i]), `and`)  then n:=n+1: M[n]:=[A,B,C,d,E,G,i,F,H,J,K,L]:  fi:

od:

M:=convert(M,list):

remove(x->nops(convert(x,set))<12, M):

nops(%);  # Total number of solutions

                          0

@MiguelJesus 

restart;

n:=0:

S:=combinat[permute]([$ 3..14], 5):

for s in S do

F, H, J, K, L:=op(s):

A := 33 - K - L:

B := 1 + F - J:

C := -15 - F + J + K + L:

d := 15 + H - K:

E := 16 - F - H + J + K:

G := 34 - H - J - L:

i := 18 - J - K:

if  convert(map(x->is(x>=3 and x<=14), [A,B,C,d,E,G,i]), `and`) then n:=n+1: M[n]:=[A,B,C,d,E,G,i,F,H,J,K,L]  fi:

od:

M:=convert(M,list):

nops(M);  # Total number of solutions

M[1..10];

M[-10..-1];

@Axel Vogt   Excellent solution. It is more algorithmic and quicker than mine.

@Axel Vogt   7288<150565 

@Axel Vogt   

Here are 2 reasons for the sharp decrease in the number of solutions:
1) All variables are different.
2) The ranges for all variables are significantly narrowed.

@MiguelJesus   From the inequality  18-J-K>0  we get  J+K<18 . From this we get the bounds  1<=J<=17  and  1<=K<=17 .

Next from the inequality  33-K-L>0  we get  K+L<33  and because bounds for  K are already known, then we get  1<=L<=32 .  The bounds for  H  and  F  we get from the inequalities  34-H-J-L > 0  and  -15-F+J+K+L > 0 

For  F  we have   F< J+K+L-15 < J+K+K+L-15 < 18+33-15=36 

@Markiyan Hirnyk   For example, if necessary to find the total number of solutions.

@Markiyan Hirnyk   My method gives the complete list of all solutions in explicit form. In some situations, it may be important!

First 105 106 107 108 109 110 111 Last Page 107 of 134