Kitonum

21885 Reputation

26 Badges

17 years, 243 days

MaplePrimes Activity


These are replies submitted by Kitonum

@vs140580  I don't understand why you can't do this:

op(0,RandomTools:-Generate(choose({A(Graphln, k),B(Graphln, k),C(Graphln, k)})));

@Carl Love  Thanks, I've edited my answer.

@nm  Thanks a lot for the answer!

@acer  Thanks a lot for the detailed answer!

@mmcdara  I agree, but this is not a fundamental difference. We can add the  collect  command:

x^(n-1)*(collect(expand((n*x^n - 2*n*x^(n - 1) + x^n)/x^(n-1)), x));

                                         

@lcz If you are interested in arbitrary set partitions, you can also take a look at my  post  https://mapleprimes.com/posts/200776-Partition-Of-A-Set-Into-Parts-Of-Any-Sizes .  It was written long ago, when Maple didn't have the  Iterator package yet.

@dharr  OK. Vote up.

@ecterrab In fact, the exact solution is easily expressed explicitly (see below). But a natural question arises: why does this solution not continue to the right from  x~2.55 , as shown by the numerical solution?

restart;
ode:=diff(y(x),x,x)+2*diff(y(x),x)^2+8*y(x)=0:
ics:=y(0)=0, D(y)(0)=1:
dsolve({ode, ics}, y(x), implicit);
value(%);
isolate(%, y(x));
sol := simplify(%);
odetest(sol, [ode, ics]);

                                       

@Thomas Dean  Using the P procedure, you can plot the body of revolution for any value of the parameter  a  (this is the angle of rotation).  P (2*Pi+Pi/2)  will be the whole body:

P(5*Pi/2);

                             

 

 

@Axel Vogt  A good idea! This can be done even without using the plottools package:

restart;
plot([erf(y),y, y=-3..3]);

                                  

 

@Christian Wolinski 

It takes approximately 10 sec in Maple 2018.2.

@zenterix  In 2d input use prefix (Polish) notation:

A:=<1,2;3,4>: B:=<6,7;8,9>:
`%.`(A,B)=A.B;

 

@acer  Thank you! I tried the  convert(..., factorial)  command, but for some reason did not think to apply the  expand  one. In Maple 2018, your method also works.

In Maple 2018, the decision takes less than a second. There are probably syntax errors in your code.

restart;
M3:=Matrix(6, 6, [[1., -1., 1., -1., 1., -1.], [1., 1., 1., 1., 1., 1.], [-2., 1.618033989, 30.94427190, -153.8246851, 371.1559479, -572.9674774], [-2., 0.6180339876, 22.94427191, -41.15905356, -37.04759741, 149.3606798], [-2., -0.6180339876, 13.05572810, 22.82468509, -20.15594802, -81.03252254], [-2., -1.618033989, 5.055728096, 28.15905368, 68.04759752, 104.6393203]]);
v:=Vector[column](6, [-1/3, -1, 0, 0, 0, 0]);
a := LinearAlgebra:-LinearSolve(M3, v);

                                                           

First 8 9 10 11 12 13 14 Last Page 10 of 134