vv

14142 Reputation

20 Badges

10 years, 253 days

MaplePrimes Activity


These are replies submitted by vv

@mnovaes 

for x in Elements(S3) do 
  print('x'=x, 
        orbits=Orbits( PermutationGroup(x, degree=3 )),
        numorbits=numelems(Orbits(PermutationGroup(x, degree=3)))  ) 
end do;

 

 

restart;

M:=<
r0/(r-b), -r/(r-b),0,0;
-r/(r-b),b*r/r0/(r-b),0,0;
0,0,-b/r0,-1;
0,0,-1,-r0/r>;

C:=<
r/(r-b),0,0,0;
0,-1,0,0;
0,0,(r-b)/r,0;
0,0,0,-1>;

_rtable[18446744074327491158]

 

Matrix(%id = 18446744074331797254)

(1)

 

U:=< u11,u12,0,  0;     # look for a block-diagonal U, such as M and C
     u21,u22,0,  0;
     0,  0,  u33,u34;
     0,  0,  u43,u44>;

_rtable[18446744074331800750]

(2)

U^+ . C . U - M:

sol:=solve({entries(%,nolist)}, indets(U));#, explicit):
nops([sol]);

{u11 = RootOf(_Z^2*b*r-b*r0+r*r0), u12 = 0, u21 = -r/(RootOf((b*r0-r*r0)*_Z^2-b*r)*(-r+b)), u22 = RootOf((b*r0-r*r0)*_Z^2-b*r), u33 = r/(RootOf((-r+b)*_Z^2-r0)*(-r+b)), u34 = RootOf((-r+b)*_Z^2-r0), u43 = RootOf(_Z^2*r0-b+r), u44 = 0}, {u11 = -(RootOf(_Z^2*b*r+2*_Z*r*r0*u22+r0^2*u22^2-r*r0)*u22*b-RootOf(_Z^2*b*r+2*_Z*r*r0*u22+r0^2*u22^2-r*r0)*u22*r+r)/(r*RootOf(_Z^2*r*r0+b*r0*u22^2-r*r0*u22^2-b*r)), u12 = RootOf(_Z^2*r*r0+b*r0*u22^2-r*r0*u22^2-b*r), u21 = RootOf(_Z^2*b*r+2*_Z*r*r0*u22+r0^2*u22^2-r*r0), u22 = u22, u33 = r/(RootOf((-r+b)*_Z^2-r0)*(-r+b)), u34 = RootOf((-r+b)*_Z^2-r0), u43 = RootOf(_Z^2*r0-b+r), u44 = 0}, {u11 = RootOf(_Z^2*b*r-b*r0+r*r0), u12 = 0, u21 = -r/(RootOf((b*r0-r*r0)*_Z^2-b*r)*(-r+b)), u22 = RootOf((b*r0-r*r0)*_Z^2-b*r), u33 = RootOf(b*r*u34^2-2*_Z*r*u34+_Z^2-r*r0)/r0, u34 = u34, u43 = -(RootOf(b*r*u34^2-2*_Z*r*u34+_Z^2-r*r0)*u34*b-RootOf(b*r*u34^2-2*_Z*r*u34+_Z^2-r*r0)*u34*r-r*r0)/(r0*r*RootOf(_Z^2*r+b*u34^2-r*u34^2-r0)), u44 = RootOf(_Z^2*r+b*u34^2-r*u34^2-r0)}, {u11 = -(RootOf(_Z^2*b*r+2*_Z*r*r0*u22+r0^2*u22^2-r*r0)*u22*b-RootOf(_Z^2*b*r+2*_Z*r*r0*u22+r0^2*u22^2-r*r0)*u22*r+r)/(r*RootOf(_Z^2*r*r0+b*r0*u22^2-r*r0*u22^2-b*r)), u12 = RootOf(_Z^2*r*r0+b*r0*u22^2-r*r0*u22^2-b*r), u21 = RootOf(_Z^2*b*r+2*_Z*r*r0*u22+r0^2*u22^2-r*r0), u22 = u22, u33 = RootOf(b*r*u34^2-2*_Z*r*u34+_Z^2-r*r0)/r0, u34 = u34, u43 = -(RootOf(b*r*u34^2-2*_Z*r*u34+_Z^2-r*r0)*u34*b-RootOf(b*r*u34^2-2*_Z*r*u34+_Z^2-r*r0)*u34*r-r*r0)/(r0*r*RootOf(_Z^2*r+b*u34^2-r*u34^2-r0)), u44 = RootOf(_Z^2*r+b*u34^2-r*u34^2-r0)}

 

4

(3)

U1:=simplify(eval(U,sol[1]));

_rtable[18446744074331796774]

(4)

U2:=simplify(eval(U,sol[2]));

_rtable[18446744074331814238]

(5)

U3:=simplify(eval(U,sol[3]));

_rtable[18446744074351390102]

(6)

U4:=simplify(eval(U,sol[4]));

_rtable[18446744074347183030]

(7)

allvalues(eval(U4, [u34=0,u22=0]));

Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 1/sqrt(r0/r), (4, 4) = sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = -1/sqrt(b/r0), (1, 2) = sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)}), Matrix(4, 4, {(1, 1) = 1/sqrt(b/r0), (1, 2) = -sqrt(b/r0), (1, 3) = 0, (1, 4) = 0, (2, 1) = -sqrt(r0/b), (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = -sqrt(r*r0)/r0, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = -1/sqrt(r0/r), (4, 4) = -sqrt(r0/r)})

(8)

 


Download yourU.mw

@vv 

OK, I was looking only for symmetric solutions and I see now that your U is not symmetric.
Changing

U:=< u11,u12,0,  0;     # look for a block-diagonal U, such as M and C
     u21,u22,0,  0;
     0,  0,  u33,u34;
     0,  0,  u43,u44>;

==> 64 solutions, some of them depending on a parameter.
Most probably your U is one of them. Just check.

 

@Adam Ledger 

It is faster, and maybe e.g. the user only wants to have the duplicates near each other.

@Kitonum 

A not so obvious fact is that the sequence X(n) is dense in the interval [1,2], i.e. for each 1 <= t <= 2  there is a subsequence converging to t.

@das1404 

The lines can be removed. E,g.
display(polygon(A), axes=none, color=gold, style=patchnogrid);

@acer 

The real option in solve does not seem to be reliable.

restart;
solve((x^2-1)*(exp(x)+1),{x});
                 {x = I Pi}, {x = 1}, {x = -1}
solve((x^2-1)*(exp(x)+1),{x},real);
                 {x = I Pi}, {x = 1}, {x = -1}
solve((x^2-1)*(exp(x)+1),{x},real,allsolutions);
                 {x = I Pi}, {x = 1}, {x = -1}
solve((x^2-1)*(exp(x)+1),{x},allsolutions);
           {x = I Pi + 2 I Pi _Z1}, {x = 1}, {x = -1}

 

identify is far for being reliable. It fails here for some polynomials.

@Mariusz Iwaniuk 

@nyarko 

After all, sqrt is the simplest function after polynomials.
Just think: can the sqrt be removed in  2 + sqrt(3) ?

The method was posted just for fun and to show a (very inefficient!) possibility. The polygonal approach is much more efficient but designing nice letter shapes is time consuming. The ideal solution would be to have an angle parameter in textplot.

Or, including the asymptotics:

with(IntegrationTools):
A:=Int(exp(-x*t)/sqrt(t^2+t),t=1..infinity):
to 6 do
  A:=Parts(A,GetIntegrand(A)/exp(-x*t)) assuming x>0;
od:
eval(A,Int=0);

@rlopez 

@Math Pi Euler 

Probably you have included the prompt.
Here is the worksheet: asy.mw

Forget about the robot, focus on maths.

So, what are the equations (constraints), and what do you want to maximize?

If you only have 2 equations
cos(q[1])*cos(q[3])-sin(q[1])*sin(q[3])+sin(q[1])*q[2]+cos(q[1]) - 1 = 0,
sin(q[1])*cos(q[3])+cos(q[1])*sin(q[3])-cos(q[1])*q[2]+sin(q[1]) -1 = 0;

then there are infinitely many solutions. One of them is:

fsolve([
cos(q[1])*cos(q[3])-sin(q[1])*sin(q[3])+sin(q[1])*q[2]+cos(q[1]) - 1 = 0,
sin(q[1])*cos(q[3])+cos(q[1])*sin(q[3])-cos(q[1])*q[2]+sin(q[1]) -1 = 0,
q[1]=0
]);

        {q[1] = 0., q[2] = 0., q[3] = 1.570796327}

 

 

@Adam Ledger 

See the help page  ?semilogplot

Actually you can simply use  the equivalent 

plot(eval(u, x=10^t), t=1..100);

the only difference being the tickmarks.

 

A very nice post!
Unfortunately it shows that to obtain the desired asymptotic expansion
the user must have sound knowledge in several mathematical fields such as
Special functions, Complex analysis, Optimization theory etc.
And of course Maple programming.
Let's hope that in the near future a simple call to
series(), MultiSeries:-series() or maybe MultiSeries:-multiseries
will be enough in most cases.

Just a side note. Some math parts of the worksheet should be converted into
"non-executable" for easier step-by-step execution.

 

First 97 98 99 100 101 102 103 Last Page 99 of 178