Preben Alsholm

13728 Reputation

22 Badges

20 years, 247 days

MaplePrimes Activity


These are replies submitted by Preben Alsholm

If your make a search in Maple for userinfo in the result from
showstat(limit);
you won't find userinfo.
Thus infolevel[limit]:=5;
wouldn't help anything.
You could try debug(limit); but that won't be very illuminating.
Or you could try stopat(limit); 
Basically, don't expect a computer program like Maple to work like a university teacher presenting things in a string of logically ordered steps as in a Calculus class.

Although the title could be seen as a question, it appears that it is not. The code seems to be running.
You ought to avoid implicit declarations of locals though.
Either declare those local or suppress the warning (which may not be that great an idea in general):
interface(warnlevel=1);

I don't know, but last year it was at the end of March.

To go from the inert Int to the active int, simply use value(res), where res is the result you got from dsolve.

The standard way to turn exact (symbolic) expressions like sqrt(2), Pi, sin(78), or what have you, into floating point numbers, is to use evalf:
evalf(Pi);
evalf(sin(78));
If you want to work with more digits than the default 10 (e.g. 15) you can do
evalf[15]( Pi );

@Markiyan Hirnyk An nth order ode needs n boundary (or initial) conditions.
If you try the following after your dsolve command you will see that ((D@@4)(w))(0) appears, i.e. an arbitrary constant:
indets(%,function);
### But using torabi's worksheet and adding method = laplace, as you did, works.

You must have introduced a floating point number (i.e. a decimal number) at some stage. After that things like you describe can happen.
To point out where it happened we need to see the code. You could upload a worksheet.

The site was down for maintenance a day or so ago, but it surely didn't last for days.

Do you need to refresh the page or clear the cache in your browser?

I have been able to access the page each day for months with the exception mentioned. Needless to say, I'm not looking at it at all times though.

@kuker2008 You could use infnorm from the numapprox package. It finds the infinity norm of the expression, i.e. the supremum (or maximum) of the absolute value of the input on the given interval.
Thus there is no difference between these two:
 

numapprox:-infnorm(abs(b-a),x=-1..1);
numapprox:-infnorm(b-a,x=-1..1);

 

@Markiyan Hirnyk So Markiyan, if that is right, then how do you explain the difference between the very different results of

int(int(F,x=-infinity..infinity),y=-infinity..infinity);

and

int(F,[x=-infinity..infinity,y=-infinity..infinity]); 

where F is given by

f:=x->1/sqrt(2*Pi)*exp(-x^2/2);
F:=convert(f(x)*f(y)*x*x*abs(x+y),piecewise,x);

And is the note I quote from the help page for int in my answer false in its statement about a difference?

##### But I notice that my argument for VectorCalculus:-int using the iterated form was faulty.
Consider this:
 

restart;
int(phi(x,y),[x=-infinity..infinity,y=-infinity..infinity]);
lprint(%);

The result of lprint is the iterated form. I take that as an indication that after the "assumptions" job is done the integral is computed via an iterated integral.
That is in full agreement with the help page note.

First of all you need to use a midpoint method as the error message says, when you execute the dsolve command.
If you solve for the highest derivatives there is a denominator in the ode for H of the form eta*(....). So that will cause problems at eta=0.
Thus change that dsolve command to
dsys1 := {Eq1, Eq2, Eq3, Eq4, IC1, IC2}; dsol1 := dsolve(dsys1, numeric, output = listprocedure, method=bvp[midrich]);
or use the other midpoint method bvp[middefer].
I tried with no luck whatsoever.
Do you have any reason to believe that your system has a solution at all?

@Markiyan Hirnyk It appears that VectorCalculus:-int with the Rectangle input returns an iterated integral.
Let phi be unassigned:

VectorCalculus:-int(phi(x,y), [y, x] = Rectangle(-infinity .. infinity, -infinity .. infinity));
lprint(%);
int(int(phi(x, y), y = -infinity .. infinity), x = -infinity .. infinity)

I think this explains why VectorCalculus:-int with Rectangle works correctly for the function g. In my answer I used iterated integrals instead of double range integrals to get the correct answer.

I simply don't understand what you are talking about. Could you be more specific? Has it got to do with Maple?

@Christopher2222 Quite right; you can't.

@shakuntala In the sense I described above the ode involving only f (and with the boundary conditions with theta left out) does indeed have two solutions (at least). I only looked at the first value in B, i.e. B[1] = 1.
The other solution for f is negative and decreasing. I'm not familiar with the physics of this, but this may be an unwanted solution for those reasons alone.
If not, then there is a mathematical (or at least a numerical) problem for the total system with that solution: The numerator in the theta equation when solved for diff(theta(eta),eta) is 7*f(eta)+30:

That is bad news because 7*f(eta)+30 becomes zero in the interval 0..1.1 as seen in this graph:

First 68 69 70 71 72 73 74 Last Page 70 of 230