Rouben Rostamian

MaplePrimes Activity


These are replies submitted by Rouben Rostamian

@Markiyan Hirnyk A more challenging problem is to produce a picture of the cut-out sphere, like the gray 3D picuture shown, in Maple.  I tried, and then had to give up.

I conjecture that the error is due to missing multiplication signs in your worksheet, however It is impossible to be sure based what you have posted.

Consider uploading your worksheet.  Use the large green up-arrow in the reply screen for that.

 

@tellap I can't tell whether you are asking for help with the math or with Maple.  Do you know how to determine the equation of the shock in terms of a and b?  Once you have that equation, you can ask Maple to plot it for you.  Maple can't do that on its own.

Your reference/textbook should tell you how to determine the shock speed.  Look it up.

@tellap Forget about the cases (i) through (vi) for now.  Take a simple case.  Suppose that the inital data is a when x < 0, and b when x > 0.   There are two cases:

Case (1): a < b    [example: a = -1, b = 2]

Case (2): a > b    [example: a = 3, b = -2]

Can you do the plots for cases (1) and (2)?  Unless you can do these, there is no point in attempting the more complex cases (i) through (vi).

 

@tellap After you remove the Magenta and Cyan plots, don't forget to remove the comma after the Blue plot.

@tellap Yes, they are.

Matlab?  What is Matlab?

Do you have a question about Maple?

@laporte bernard Copy/paste to mapleprimes is not a good idea at all.  If you do that, the contents of your worksheet is shown as a set of little pictures.  If I want to test your code in Maple, then I will have to retype what you have typed by looking at those pictures, and try very hard not to make mistakes.  Most people will just ignore your post because that is too much trouble.

Instead of copy/paste, you should upload your worksheet with the big GREEN ARROW which I noted earlier.  See, for example, the link labeled de.mw in:

http://www.mapleprimes.com/questions/204117-Test-Solution-In-A-Complicated-Differential

 

 

This is a little simpler:

x := 3;

x$5;

      3, 3, 3, 3, 3

 

Hi laporte bernard,

I can copy the code that you have posted into Maple, execute it, and see the results of the computations, and the plots of the circles.

If your own worksheet contains more information than what you have already posted, then you may attach it to your message with the help of the big GREEN ARROW which appears when you edit your message.  But if it is the same as what you have already shown, then that wouldn't be necessary.

You should make an effort, however, to clearly state your question.  As it it stated now, I have no idea what you are asking.

Sure.  Jusy say

A;

F;

If you meant to ask something else, it is not clear from your wording.

I did not expect my remark regarding the root x ≈ 1/2015! to generate so many followups.  Had I known that, I would have provided more details to begin with which, in particular,  would have shown that

1/2015! - h*(1/2015!)^2  <  x  <  1/2015!

where

h = 1 + 1/2 + 1/3 + ... + 1/2015 ≈ 8.2,

and would have spared Markiyan some confusion.  The explanation is a bit long.  However, it may be of some interest due to the novel(?) idea of a using a differential equation to solve an algebraic equation.  I have used this method on a few occasions in the past, and I like to think that it's my own invention, although I dare not claim it, since it wouldn't be surprising that others have stumbled upon it as well. I will explain the idea in the context of Markiyan's problem, but the method is general and is not tied to that specific equation.

Let

p(x) = x(x+a1)(x+a2)...(x+an),

where the ai's are distinct positive constants. We want to solve the equation p(x) = t for some x > 0 and  t > 0.  Ultimately we are interested in t = 1, but we let t be an arbitrary parameter for now.

We regard p(x) = t  as an implicit definition of x as a function of t.  We write x(t) for that function.  It follows that p(x(t)) = t, and in particular p(x(1)) = 1.  Therefore, x(1) is the solution of p(x) = 1, and solving Markiyan's problem is equivalent to computing x(1).  For future reference let us note that x(0) = 0.

Upon differentiating p(x(t)) = t with respect to t we obtain p'(x(t)) * x'(t) = 1, therefore x(t) satisfies the differential equation

dx/dt = 1/p'(x),    x(0) = 0.       (*)

We solve the initial value problem (*) by any possible means, and then evaluate x(1) which, as explained above, would be the solution of p(x) = 1.

We choose to solve (*) by the method of power series here.  Experimenting in Maple with a few smallish values of n (recall that p(x) is defined in terms of n) we see that the solution of (*) is an alternating series which begins with

x(t) = (1/A)t - (h/A2) t2 + O(t3)

where

A = a1 a2 ... an,

and

h = 1 + 1/2 + 1/3 + ... + 1/n.

It then follows that x(1), which is the solution of p(x) = 1, is given by the alternating series

x(1) = 1/A - h/A2 + ...

We conclude that

1/A - h/A2  < x(1) < 1/A.

QED

 

 

 

@Carl Love That phrasing struck me as a bit strange too, but I attributed it to a misuse of the English idiom "to think twice" by a non-native speaker.  I assume that it was meant in the spirit of "I will consider the use of piecewise functions more seriously from now on".  I stand to be be corrected, however.

@Markiyan Hirnyk When I copy/paste the lines that you have shown into my Maple 18, things work as intended.  Try a restart.  If that doesn't work, then perhaps the problem is due insufficient memory.  See what happens if you change numpoints=50000 to somethng smaller, perhaps numpoints=5000.  I can't think of another reason.

@Carl Love Thanks again for the explanation.  I seem to have a blind spot somewhere which prevents me from grasping this. I will think it over and ask for clarification if the puzzlement continues.

First 92 93 94 95 96 97 98 Page 94 of 99