6885 Reputation

18 Badges

4 years, 150 days

MaplePrimes Activity

These are replies submitted by vv

@David Sycamore 

P calls PP (from my first answer), so, PP must be present and executed in order to use P.

Just execute (use the (!!!) icon) the attached:



@David Sycamore 

You do not have the procudure PP in the worksheet (and executed, of course).

@David Sycamore 

The procedure PP can be easily used for any such questions:


P := proc(n)
local p, P:=select(isprime, [seq(1..n)]);
select(PPrime, P, n)

     [2, 3, 5, 7, 11, 13, 19]

@David Sycamore 

Just replace

Sol[++nSol] := XXX


nSol:=nSol+1; Sol[nSol] := XXX

(in 2 places)

@Carl Love 

It works in 2018 (even if ++x etc are not documented).

@Rouben Rostamian  

There are 2 solutions: take the symmetry  (x,a) -> (-x, -a).
(For external tangency there are also 2 solutions).


A continuous function e.g. on R has a continuous antiderivative but a CAS does not necessarily find one.

E.g.  int(1/(2+cos(x)), x) Even for a human it's not trivial.


The antiderivative is computed correctly, but it is not continuous, which techically is not a bug:

F:=int(sqrt(1+((k*Pi)/l*cos((Pi*x)/l))^2), x) assuming k>0,l>0:
F22:=eval(F,[l = 2, k = 2]):
limit(F22,x=2,left) - limit(F22,x=0, right); 

      4.609785320 - 0.*I


@mehdi jafari 

I tried DirectSearch instead of fsolve.
It seems that the system has no solutions, see the attached worksheet.


@mehdi jafari 

Your code is not usable. You have merged procedures and expressions: e.g. if F and G are procedures with parameter x, F(x) + G(x) makes sense but F + G(x) or F + x^2  are usually nonsenses.

In your first post, eq2 contains  int( T[rr]*r, r=s..t)
but T[rr]  does not depend on r (r appears as an integration variable).

So, before turning Eq1,...,Eq4 into procedures, you must clarify the equations mathematically.
Note that if you are going to have double integrals (which is not clear for now), fsolve will probably be inacceptably slow or even fail.


I think the OP wants to insert rational numbers with minimal denominators between the elements of a sorted  list(realcons).
I don'd know why he does not try to state the question more clearly.


Strange indeed. A "normal" answer should have been

X:= n -> piecewise(n<10, [1,22,-308,-3003,21021,105105,-360360,-765765, 765765][n], 0);

obtained easily using rsolve({req, x(1)=1}, x, makeproc);

How did you think at assuming integer? Vote-up for this!

@Carl Love 

A "Godelian" example would look quite different. This one should be easy for a human but difficult for Maple. BTW, the answer is "true".

A tough test for Maple would be:

F := piecewise(exp(x+exp(x)-sin(x^2))>=x+1-cosh(x/2), 2*x+1, x^2);




You are right. I was fooled by Maple's solve. I am disappointed that Maple fails for a simple rational polynomial system:

sys := [x^2 + y^2 - x*y - 1 = 0, y^2 + z^2 - y*z - a^2 = 0, z^2 + x^2 - x*z - b^2 = 0]:
solve(eval(sys,ab), allsolutions):

    [{x = 1.1419533726022634876, y = 0.42279817537010308072, z = -9.7818952278636396166}]


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