117 Reputation

7 Badges

13 years, 5 days

MaplePrimes Activity

These are replies submitted by Bart

@Preben Alsholm Thanks, and glad to hear it got resolved in Maple 2023.

@mmcdara I was under the impression that an improper integral with infinity as one of the limits is meant to be read as the limit of a finite number going to infinite, so


and hence I was also expecting 0 for the 2D integrals.

I agree that the following is undefined


However, when either one of them is fixed and one takes a variable to approach the other number in the limit, the result does not change. This is illustrated by the following limits

limit(infinity*x,x=0, right); 
limit(0/x,x=0, right); 

In the first two the result stays infinite, and in the last two the result stays zero.

However, it is indeed a bit odd that then

subs(c = 0, limit(int(c, x = 0 .. L), L = infinity))
subs(c = 0, int(c, x = 0 .. infinity))
subs(c = 0, int(c, x = 0 .. infinity, AllSolutions=true))

which Maple therefore considers to be undefined.

@Rouben Rostamian  @vv

pdsolve using a system of 1st order PDEs doesn't seem to work out-of-the-box for a slight modification of example 2 (a discontinuous initial condition):

bc:={ u(0,t)=0, u(1,t)=1, u(x,0)=2*Heaviside(x-0.5) }:

while Rouben's solution does.


As @acer indicated, for Maple 2016 one cannot use stylesheet. The following command, using a thickness of 0.1 instead of 0, makes the edges even thinner than given in acer's solution:

subsindets(P, specfunc(THICKNESS), ()->THICKNESS(0.1));


From Maple 2015 onwards one can use Physics[Assume] instead of assume. This will resolve it:


Assume(additionally, a>1);
subs(a=2, expr1); #gives correct answer: sqrt(2)
subs(a=2, expr2); #now also gives correct answer: sqrt(2)


Thank you very much again for the really quick fix.

@Preben Alsholm 

This still seems to be wrong (also in Maple 2018), because multi-dimensional indexing works differently in Python (

The correct output would need to be

import numpy
def QLoc():
    Q = numpy.mat([[0,0],[0,0]])
    Q[0, 0] = 0.1e6
    Q[1, 1] = 0.1e5
    Q[0, 1] = 0.1e4
    Q[1, 0] = 0.1e4

@Mac Dude 

Thanks. This is a valid workaround, but the quality is less and available options are much more restricted. For example, a table of contents is not possible with this. I prefer to have the eBookTools working properly.

Looks like it is fixed in Maple 2017.

@pake Did you try it out?

It is working in Maple 2017, thanks for the fix.

The problem is still present in Maple 2017. Some of the integrals can be calculated correctly using the piecewise representation of the Heaviside function (similar to using the aforementioned option method=ftoc).

H(z):= piecewise(z < 0, 0, z = 0, undefined, 0 < z, 1)
int(Heaviside(-x^2-y^2+1), x = 0 .. 1, y = 0 .. 1) # Gives incorrect -pi/4
int(H(-x^2-y^2+1), x = 0 .. 1, y = 0 .. 1) # Gives correct pi/4
int(H(-x^2-y^2+1), x = 0 .. infinity, y = 0 .. 1) # Gives correct pi/4
int(H(-x^2-y^2+1), x = 0 .. infinity, y = 0 .. 2) # Gives undefined

@DJ Clayworth 

Not sure what kind of problems the OP had exactly in mind, but in Maple 2016


shows an upshoot near 1e-5 and


shows a flat region near t=1e3..1e5

@ecterrab Thanks a lot for the really quick bug fix.

@Preben Alsholm Thank you for confirming this and submitting the bug report.

@vv and @acer Thanks for simplifying and filing the bug! I should have done so myself.

1 2 Page 1 of 2