vv

13560 Reputation

20 Badges

9 years, 212 days

MaplePrimes Activity


These are answers submitted by vv

restart;

poly := x^6 - 3*x + 3

x^6-3*x+3

(1)

firstroot := [solve](poly, x)[1];

RootOf(_Z^6-3*_Z+3, index = 1)

(2)

alias(alpha=firstroot);

alpha

(3)

G := GroupTheory:-GaloisGroup(poly, x);

_m2134450194848

(4)

GroupOrder(G);

72

(5)

quo(poly,x-alpha,x);

x^5+alpha*x^4+alpha^2*x^3+alpha^3*x^2+alpha^4*x+alpha^5-3

(6)

S:=simplify([solve(%)]):

alpha[0]=alpha;
for i to 5 do print(alpha[i]=S[i]) od:

alpha[0] = alpha

 

alpha[1] = (1/102)*((12*alpha^5+28*alpha^4+20*alpha^3+24*alpha^2-12*alpha-30)*(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(1/3)-612*alpha^5-1428*alpha^4-1020*alpha^3+(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(2/3)-1224*alpha^2+612*alpha+3264)/(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(1/3)

 

alpha[2] = 3*(((2/51)*alpha^5+(14/153)*alpha^4+(10/153)*alpha^3+(4/51)*alpha^2-(2/51)*alpha-5/51)*(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(1/3)+(((1/612)*I)*3^(1/2)-1/612)*(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(2/3)+(alpha^5+(7/3)*alpha^4+(5/3)*alpha^3+2*alpha^2-alpha-16/3)*(I*3^(1/2)+1))/(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(1/3)

 

alpha[3] = -3*((-(2/51)*alpha^5-(14/153)*alpha^4-(10/153)*alpha^3-(4/51)*alpha^2+(2/51)*alpha+5/51)*(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(1/3)+(((1/612)*I)*3^(1/2)+1/612)*(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(2/3)+(alpha^5+(7/3)*alpha^4+(5/3)*alpha^3+2*alpha^2-alpha-16/3)*(I*3^(1/2)-1))/(-426564-41616*alpha^5-97104*alpha^4-69360*alpha^3-83232*alpha^2+10404*(408*alpha^5+952*alpha^4+680*alpha^3+816*alpha^2-408*alpha+1581)^(1/2)+41616*alpha)^(1/3)

 

alpha[4] = -(3/17)*alpha^5-(7/17)*alpha^4-(5/17)*alpha^3-(6/17)*alpha^2-(11/34)*alpha+15/34+(1/34)*(-272*alpha^5+136*alpha^4-68*alpha^3-255*alpha^2-306*alpha+969)^(1/2)

 

alpha[5] = -(3/17)*alpha^5-(7/17)*alpha^4-(5/17)*alpha^3-(6/17)*alpha^2-(11/34)*alpha+15/34-(1/34)*(-272*alpha^5+136*alpha^4-68*alpha^3-255*alpha^2-306*alpha+969)^(1/2)

(7)

 

Download galois6.mw

The answer is x_1 = ... = x_n = 1/n  (n=2014) [actually easy to guess].
The problem is designed for a math competition, not for a CAS, but here is a solution.

The function f : [-1,1] -> R, f(x) = (1+x)^(1/2) is continuous, strictly increasing and strictly concave (f''(x)<0 for |x|<1).
For x_1, ..., x_n in [-1,1], Jensen's inequality implies
f(x_1) + ...+ f(x_n) <= n f((x_1 + ... +x_n)/n).
Denoting x* = (x_1 + ... +x_n)/n, from the 1st equation it results  
f(1/n) <= f(x*).

Using the 2nd equation:
f(-1/n) <= f(-x*).

f being strictly increasing, 1/n <= x*, -1/n <= -x*, so, x*=1/n. 
It results from the first equation that we have "=" in Jensen's inequqlity.
f being strictly concave, we must have x_1 = ...= x_n = 1/n.
Q.E.D.

Hypergeometric0F1Regularized[a, z]  corresponds to  hypergeom([], [a], z) / GAMMA(a)  in Maple.

But your ^(1,0)  is nonsense.

To work correctly, MatrixPower needs a much higher precision, e.g. take Digits=40 in your example.

BTW, a matrix C has a square root if det(C) <>0.  <0,1; 0,0> has not a square root.

The equivalence is logical equivalence indeed. For the simple expression q := (x[1] &or x[2]) &and x[3],  the only nonidentical permutation is f defined by f(x1)=x2, f(x2)=x1, f(x3)=x3 [so, f(not x1) = not x2 etc].

As the help file (and  Christian Wolinski) says, the expression must be in CNF form. It is strange that Normalize (recommended in the help) does not work and we must use Canonicalize:

with(Logic);
q := (x[1] &or x[2]) &and x[3];
qn := Normalize(q, form=CNF);                       # wrong!
qn := Canonicalize(q, {x[1],x[2],x[3]}, form=CNF);  # ok
G, L := SymmetryGroup(qn, output = [group, expressions]);
#g1, g2 := Generators(G)[];
GroupOrder(G);  # 2,  ok

 

Here `O` is simply a local variable lost from some procedure and landed at top level, due to a bug.

According to a well known theorem, the Invariance of domain, an interval such as (380,780) cannot be homeomorphic to  (0,1)^3, so, a correspondence between WaveLength and (r,g,b) will be always problematic.

Pn := [ (5*X + 12*Y)*(-384 + 48*X + 55*Y)/(225*X^2 + 225*Y^2 - 1800*X - 602*Y),
         2*(12*X - 5*Y)*(-384 + 48*X + 55*Y)/(225*X^2 + 225*Y^2 - 1800*X - 602*Y)]:

(x,y) =~ Pn[]

x = (5*X+12*Y)*(-384+48*X+55*Y)/(225*X^2+225*Y^2-1800*X-602*Y), y = 2*(12*X-5*Y)*(-384+48*X+55*Y)/(225*X^2+225*Y^2-1800*X-602*Y)

(1)

eliminate( {%, Y= 2+3*X}, {X,Y})

[{X = (4/3)*(38274*x+38914*y-126451)/(30102*x-25053*y-131066), Y = -(213300*x+105550*y-767936)/(-30102*x+25053*y+131066)}, {738*x^2+2133*x*y+1240*y^2-2952*x-8173*y}]

(2)

conic:=%[-1][];

738*x^2+2133*x*y+1240*y^2-2952*x-8173*y

(3)

plots:-implicitplot(conic, x=-30..30,y=-30..30);

 

 


Download conic.mw

B:=<0,-2,1;-1,0,0;-2,0,0>; A:=B+1;

Matrix(3, 3, {(1, 1) = 0, (1, 2) = -2, (1, 3) = 1, (2, 1) = -1, (2, 2) = 0, (2, 3) = 0, (3, 1) = -2, (3, 2) = 0, (3, 3) = 0})

 

Matrix(%id = 18446745955451478974)

(1)

# By hand:

B^2,B^3

Matrix(3, 3, {(1, 1) = 0, (1, 2) = 0, (1, 3) = 0, (2, 1) = 0, (2, 2) = 2, (2, 3) = -1, (3, 1) = 0, (3, 2) = 4, (3, 3) = -2}), Matrix(3, 3, {(1, 1) = 0, (1, 2) = 0, (1, 3) = 0, (2, 1) = 0, (2, 2) = 0, (2, 3) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = 0})

(2)

1 + n*B + binomial(n,2)*B^2:  'A'^n = expand~(%)

A^n = (Matrix(3, 3, {(1, 1) = 1, (1, 2) = -2*n, (1, 3) = n, (2, 1) = -n, (2, 2) = n^2-n+1, (2, 3) = -(1/2)*n^2+(1/2)*n, (3, 1) = -2*n, (3, 2) = 2*n^2-2*n, (3, 3) = -n^2+n+1}))

(3)
   

# By Maple:

LinearAlgebra:-MatrixPower(A, n);

Matrix(3, 3, {(1, 1) = 1, (1, 2) = -2*n, (1, 3) = n, (2, 1) = -n, (2, 2) = n^2-n+1, (2, 3) = -(1/2)*n^2+(1/2)*n, (3, 1) = -2*n, (3, 2) = 2*n^2-2*n, (3, 3) = -n^2+n+1})

(4)

 

S:=Sum(Sum( a^2*b^2/sinh(Pi*(a+b))*(-1)^(a+b),  a=1..infinity), b=1..infinity);
# The double series converges very fast!

Sum(Sum(a^2*b^2*(-1)^(a+b)/sinh(Pi*(a+b)), a = 1 .. infinity), b = 1 .. infinity)

(1)

evalf[30](S);

0.265258238486492226281472938954e-2

(2)

S=identify(%);

Sum(Sum(a^2*b^2*(-1)^(a+b)/sinh(Pi*(a+b)), a = 1 .. infinity), b = 1 .. infinity) = (1/120)/Pi

(3)

# The equality holds but the proof is to be found!


 

str:="(1/(2^
       j) ((k*Gamma[5 + 2 j] Gamma[
          1 + l] HypergeometricPFQ[{1, 5/2 + j, 3 + j}, {3 + j + l/2,
           7/2 + j + l/2}, -1])/
       Gamma[6 + 2 j +
         l] + ((k + m) Gamma[7 + 2 j] Gamma[
          1 + l] HypergeometricPFQ[{1, 7/2 + j, 4 + j}, {4 + j + l/2,
           9/2 + j + l/2}, -1])/Gamma[8 + 2 j + l]))/(2^(-5 - 3 j -
       l) Gamma[5 + 2 j] Gamma[
     1 + l] (k HypergeometricPFQRegularized[{1, 5/2 + j,
         3 + j}, {3 + j + l/2, 7/2 + j + l/2}, -1] +
      1/2 (3 + j) (5 + 2 j) (k + m) HypergeometricPFQRegularized[{1,
         7/2 + j, 4 + j}, {4 + j + l/2, 9/2 + j + l/2}, -1]))";

"(1/(2^
       j) ((k*Gamma[5 + 2 j] Gamma[
          1 + l] HypergeometricPFQ[{1, 5/2 + j, 3 + j}, {3 + j + l/2, 
           7/2 + j + l/2}, -1])/
       Gamma[6 + 2 j + 
         l] + ((k + m) Gamma[7 + 2 j] Gamma[
          1 + l] HypergeometricPFQ[{1, 7/2 + j, 4 + j}, {4 + j + l/2, 
           9/2 + j + l/2}, -1])/Gamma[8 + 2 j + l]))/(2^(-5 - 3 j - 
       l) Gamma[5 + 2 j] Gamma[
     1 + l] (k HypergeometricPFQRegularized[{1, 5/2 + j, 
         3 + j}, {3 + j + l/2, 7/2 + j + l/2}, -1] + 
      1/2 (3 + j) (5 + 2 j) (k + m) HypergeometricPFQRegularized[{1, 
         7/2 + j, 4 + j}, {4 + j + l/2, 9/2 + j + l/2}, -1]))"

(1)

ex:=convert(str, FromMma);

(k*GAMMA(5+2*j)*GAMMA(1+l)*hypergeom([1, 5/2+j, 3+j], [3+j+(1/2)*l, 7/2+j+(1/2)*l], -1)/GAMMA(6+2*j+l)+(k+m)*GAMMA(7+2*j)*GAMMA(1+l)*hypergeom([1, 7/2+j, 4+j], [4+j+(1/2)*l, 9/2+j+(1/2)*l], -1)/GAMMA(8+2*j+l))/(2^j*2^(-5-3*j-l)*GAMMA(5+2*j)*GAMMA(1+l)*(k*hypergeom([1, 5/2+j, 3+j], [3+j+(1/2)*l, 7/2+j+(1/2)*l], -1)/(GAMMA(3+j+(1/2)*l)*GAMMA(7/2+j+(1/2)*l))+(1/2)*(3+j)*(5+2*j)*(k+m)*hypergeom([1, 7/2+j, 4+j], [4+j+(1/2)*l, 9/2+j+(1/2)*l], -1)/(GAMMA(4+j+(1/2)*l)*GAMMA(9/2+j+(1/2)*l))))

(2)

simplify(ex);

Pi^(1/2)

(3)

Download sqrtPi.mw

For a surface with color=red, the color of the interior of the polygons is red and the color of their borders is black.

But in your case, the surface is actually a curve (it does not depend on c), so the area of each polygon is zero! Hence, the color reduces to black 

You are using interface(prettyprint=0). To get rid of those Typesetting:-mprintslash, use at the beginning:

interface(typesetting=standard);

Note first that the maxima/minima can be found directly using the command  extrema:

 

F:=x^2-2*x*y+2*y^2-12;

x^2-2*x*y+2*y^2-12

(1)

extrema(x, {F}, {x,y}, 'Sx');  # min x   and  max x

{-2*6^(1/2), 2*6^(1/2)}

(2)

Sx;

{{x = -2*6^(1/2), y = -6^(1/2)}, {x = 2*6^(1/2), y = 6^(1/2)}}

(3)

extrema(y, {F}, {x,y}, 'Sy');  # min y   and  max y

{-2*3^(1/2), 2*3^(1/2)}

(4)

Sy;

{{x = -2*3^(1/2), y = -2*3^(1/2)}, {x = 2*3^(1/2), y = 2*3^(1/2)}}

(5)

 

 

Now, if you want the math details and use the implicit function theory,

then dy/dx equals indeed   (x-y)/(x-2*y);  you can use

 

 

dydx:=implicitdiff(F,y,x)

(-x+y)/(-x+2*y)

(6)

Then you have to solve the system  {F=0,  dydx=0}.  

solve({F=0,  dydx=0}, explicit);

{x = 2*3^(1/2), y = 2*3^(1/2)}, {x = -2*3^(1/2), y = -2*3^(1/2)}

(7)

Similarly for y (i.e. dx/dy=0).

 

You may use (9)  in your worksheet only to check that the solutions correspond to min/max rather than inflexion points.

 

You may use:

Matrix(2,2, (i,j)-> undefined);

 

First 10 11 12 13 14 15 16 Last Page 12 of 118