sand15

1613 Reputation

16 Badges

11 years, 167 days

MaplePrimes Activity


These are replies submitted by sand15

@dharr 

It works for me (Mac OSX, Firefox).
Maybe you could try this one  https://arxiv.org/abs/2111.03817
The one in my comment is      https://arxiv.org/pdf/2111.03817

@Alfred_F 

The largest octahedron (up to some symmetries) is necessarily the octahedron whose the base is the largest square S  contained in the cube.
From Prince Rupert's cube (Prince Rupert of the Rhine 1619-1682) is "the largest cube that can pass through a hole cut through a unit cube without splitting it into separate pieces". This is thus the cube which passes through the square hole S.

The solution, as those of several other Prince Rupert's passages, can be found in Bezdek, Guan, Huojter and Joos: S is a square of side length  a = 3*sqrt(2)/4.
The volume V = sqrt(2)/2*a3 of the largest octahedron is thus V = 9/16.

@dharr 
Given this property of the largest octahedron you could probably simplify your code by searching this mximal square S instead of the octahedron.
Not long ago Kitonum published this post on a closely similar problem.

@C_R 

What I get.
Which is obviously not an answer to your initial question, simply my observing what happens with an older maple version.

restart

kernelopts(version)

`Maple 2015.2, APPLE UNIVERSAL OSX, Dec 20 2015, Build ID 1097895`

(1)

one := ``(1);

``(1)

(2)

lprint(%)

``(1)

 

lprint((2))

``(1)

 

lprint(one)

``(1)

 

one;
lprint('%')

``(1)

 

``(1)

 

one;
lprint(`%`)

``(1)

 

``(1)

 

 

``(1)

``(1)

(3)

lprint(%)

``(1)

 

one := ``(1)

``(1)

(4)

lprint(%)

``(1)

 

Download With_Maple_2015_loaded_with_Maple_2026_reloaded_with_Maple_2015.mw

With_Maple_2015.mw

(file can be uploaded)

There exists an infinity of "triangle spirals" (look here  for instance) and without more information it is impossble to go futher on.
If I'm not mistaken you speak French, so you can also look to this issue of the APMEP journal (Théodore's spirals).

So you have to provide us the the transformation which defines a triangle given its predecessor and 
the intitial triangle.

By the way, you write  "I am looking to improve my animation..." which, I guess, mean that you already wrote some Maple code? It would be helpful if you could upload it.

@WD0HHU 


Change

dM1 := diff~(dM1, [a, c, d]);

into

dM1 := diff~(M1, [a, c, d]);

 

@WD0HHU 

Use the big green up arrow in the menubar to upload your worksheet (mw file).
Be careful, the name of mile must not contain special characters to be uploaded.

@WD0HHU 

Are the outputs of dM1 in your worksheet and mine (Maple 2015) the same?

If it is so try to replace this

Sol := solve(%, [a, c, d]):

by this

Sol := solve(dM1, [a, c, d]);

and tell me what you get.
Idealy upload your worksheet and send it to me.

@Alfred_F 

Observing that b is almost equal to 1, a lot of work can be done in a formal way.
It shows you that there is at least 2 solutions [a=+A, b=1, c=C, c=D] and [a=-A, b=1, c=C, c=D]. (note the + and - signs before A): 
(
I wasn't capable to find a closed form expression for 
)

NonlinearFit_details.mw






Note that if [a=A, b=B, c=C, c=D] is a soution, then  [a=A, b=B, c=C+2ℤ𝝅, c=D] is a solution too and 
[a=-A, b=B, c=C+2ℤ𝝅+𝝅, c=D] is another solution

 and writeto and save/read (see @acer 's answer) commands work exactly the same whatever your OS Unix/Linux,  Mac OSX, and even Windows.
More of this their related help pages are very clear and I can assure you I'm not an Unix guru.

About the with(plots) (p, not P) stuff: if you don't want to do some "special" plots invoking your polynomial function, or combine several of these plots, you don't need to load the plots package.
There is no in joke here.

This is the same thing for the Digits:=20 command (default is Digits := 10). Why do you use 20 digits? Is that because of some precision requirement, or did you started from some worksheet you found somewhere without thinking about the implications of this command (it enlarges the size of the machine representation of the polynomial and maay augment the computation time)?

Without this domain you can take xend=0 (which trivialy verifies constr) and find that wn(a, ..., xend) is identically null. So max(wn) = min(wn) = 0 whatever a, b, c,d, f, g.

@erik10 

Example of a torus

Feel free to uncomment the two first lines and comment the third one in

 #r := [seq(rand(0. .. 1.)(), i=1..3)]:
 #r := 2 *~ r /~ sqrt(add(r^~2)):

  r := [1.461755141, .1237707985, 1.359394240];

ProjectedBoundary.mw

@erik10 

Orthogonal projection of the trace ("Silhouette"?) of an ellipsoid cut by a plane (key function = plots:-intersectplot)
Silhouette.mw



You can dynamically change the point of view using this worksheet Silhouette_with_Explore.mw

 

Writing simultanously k*x and k(x-L) is likely a typo and that the latter should be written instead k*(x-L). This seems consistent with the exerpt of LaTex you provide (𝝀 replaced by k?).

Another possibility is you writting k*x instead of k(x)?
In which case integrand1 (and integrand3 too) are not correctly built, look to this simple example: 

my_k := r -> exp(r):
cos(k*(L - x)) = eval(cos(k*(L - x)), k = my_k(r));
lprint(%);
              cos(k (L - x)) = cos(exp(r) (L - x))
cos(k*(L-x)) = cos(exp(r)*(L-x))

#--------------------------------------------------------------

cos(k(L - x)) = eval(cos(k(L - x)), k = my_k(r));
lprint(%);
              cos(k(L - x)) = cos((exp(r))(L - x))
cos(k(L-x)) = cos((exp(r))(L-x))

#--------------------------------------------------------------

cos(k*(L - x)) = eval(cos(k(L - x)), k = (u -> my_k(u)));
lprint(%);
                cos(k (L - x)) = cos(exp(L - x))
cos(k*(L-x)) = cos(exp(L-x))

I believe you should clarify your notations.

Nevertheless, assuming my initial guess is correct, you can look to worksheet FTCT.mw and see some technical points (for instance the integral of integrand1 seems to diverge, and it would be useful thet you provid the ranges for x and t that you want to use).
One interesting point is that the integral are almost independent of t providing it remains "small", let's say t < 107.

@JoyDivisionMan 

I answered your question arround midnight yesterday and made a mistake in what comes after the attached file.
_________________________________________________________________________________________

Once said, its easier (IMO)  to think to the problem in terms of probability: a sum of iid random variables instead of a auto-convolution product.

The result I use in the attached file is the following:

  • Let X a random variable with PDF fX(t) and let Y = c*X (assuming c > 0)
    Then the PDF fY(t) of Y writes fX(t/c) / c.
    Is the support of X is (0, a), then the support of Y is (0, a / c)


Application:
The function f(t) you define can be viewed as the pdf of a continuous random variable with support (0, 2).
If U and are iid random variables with pdf f(t), then U*c and V*c (still c > 0) are iid random variables with support (0, 2/c) and U andpdfs are equal to f(t/c)/c.
Then U+V is a random variable whose support is (0, 4/c).

So, without changing the expression of f(t):
You can directly construct U andwhile saying their distribution has PDF f(t/c) / c:

U := RandomVariable(Distribution(PDF = (t -> f(t/c) / c))):

# idem V

In your case c = "desired upper bound of the support" / "present upper bound of the support of f(t)" =  (2/sqrt(3)) / 2 = 1/sqrt(3)



Here is the corrected file 

restart

kernelopts(version)

`Maple 2015.2, APPLE UNIVERSAL OSX, Dec 20 2015, Build ID 1097895`

(1)

with(Statistics):

f := proc (t) options operator, arrow; piecewise(t <= 0, 0, t <= 2, 6/5-(3/2)*t^2+(3/4)*t^3-(3/80)*t^5, 2 <= t, 0) end proc;

proc (t) options operator, arrow; piecewise(t <= 0, 0, t <= 2, 6/5-(3/2)*t^2+(3/4)*t^3-(3/80)*t^5, 2 <= t, 0) end proc

(2)

scaling := 1/sqrt(3);

U := RandomVariable(Distribution(PDF = (t -> (1/scaling) * f(t/scaling)))):

(1/3)*3^(1/2)

(3)

omega__U := Support(U, output='range')

0 .. (2/3)*3^(1/2)

(4)

plot(PDF(U, t), t=omega__U)

 

V := RandomVariable(Distribution(PDF = (t -> (1/scaling) * f(t/scaling)))):
W := U + V:

PDF(W, t);

piecewise(t <= 0, 0, t <= (2/3)*sqrt(3), -(243/8960)*t^9+(729/1971200)*t^11+(243/4480)*t^8*sqrt(3)+(729/2240)*t^7+(81/20)*t^4*sqrt(3)-(567/400)*t^6*sqrt(3)+(81/40)*t^5-(54/5)*t^3+(108/25)*t, t <= (4/3)*sqrt(3), -(243/4480)*t^8*sqrt(3)+(567/400)*t^6*sqrt(3)+(243/8960)*t^9-(729/1971200)*t^11-(528/35)*t^2*sqrt(3)-(81/35)*t^4*sqrt(3)-(729/2240)*t^7-(81/20)*t^5+(108/5)*t^3+(256/385)*sqrt(3)+(1728/175)*t, (4/3)*sqrt(3) < t, 0)

(5)

omega__W := Support(W, output='range');

0 .. (4/3)*3^(1/2)

(6)

plot(PDF(W, t), t=omega__W)

 

RightBound := op(2, omega__W);

CDF(W, RightBound);
 

(4/3)*3^(1/2)

 

1

(7)
 

 


Download SphereConvolution_sand15_corrected.mw

1 2 3 4 5 6 7 Last Page 1 of 40