MaplePrimes Questions

How to replace the symbols “true” with t and “false” with f in the output of the following code:

with(Logic);

TruthTable(a &xor b)

I tried the following but it didn't work.
subs([true = t, false = f], TruthTable(a &xor b));

This solution by dsolve is correct. I get same solution. The problem is odetest does not give zero.

All my simplification attempts failed and adding assumptions to call to odetest does not change anything for what I tried. i.e. could not make Maple show that the result of odetest is zero.

Any one can come up with smart way to verify this solution is correct? 

interface(version);

`Standard Worksheet Interface, Maple 2025.0, Linux, March 24 2025 Build ID 1909157`

restart;

ode:=diff(y(x),x)*(x-ln(diff(y(x),x))) = 1;
maple_sol:=dsolve(ode);

(diff(y(x), x))*(x-ln(diff(y(x), x))) = 1

y(x) = -(1+LambertW(-exp(-x))*x+LambertW(-exp(-x))^2)/LambertW(-exp(-x))+c__1

the_residue:=odetest(maple_sol,ode);

(-x+ln(-1/LambertW(-1/exp(x)))-LambertW(-1/exp(x)))/LambertW(-1/exp(x))

Digits:=100;
plot(the_residue,x=0..10)

100

 

 

Download odetest_challange_may_15_2025.mw

Note that coulditbe(the_residue=0) gives true, but this is not reliable way to check, so this method does not coumt.

I created the next code:

f := M+2*e*sin(M)+(5/4)*e^2*sin(2*M)+(13/12)*e^3*sin(3*M)-(1/4)*e^3*sin(M)+e^4*((103/96)*sin(4*M)-(11/24)*sin(2*M))

fb := Mb+2*eb*sin(Mb)+(5/4)*eb^2*sin(2*Mb)+(13/12)*eb^3*sin(3*Mb)-(1/4)*eb^3*sin(Mb)+eb^4*((103/96)*sin(4*Mb)-(11/24)*sin(2*Mb))

x := cos(wb-w+fb-f)

rho1 := ab*(1-eb^2)/(1+eb*cos(fb))

rho2 := a*(1-e^2)/(1+e*cos(f))

P3 = (5/2)*x^3-(3/2)*x

R3 = GM3*(rho1/rho2)^3*P3/rho2

When I do 

R3exp := mtaylor(R3, [e, eb], 5);

it returns 

R3exp := R3

When I do 

> R3temp := series(R3, e = 0, 5);
> R3exp := series(R3temp, eb = 0, 5);
> convert(R3exp, polynom);

it returns

R3

Could you tell me how I can expand in Taylor R3 around e=0 and eb=0 ?

I have a print format problem in Maple 2024.  For documents I print out, I use a special layout where all the contents are inside a table. The table is rigged to print on A4 paper. This is useful for my math notes. I havent done this for 18+ months. There appears to be a bug in Maple 2024. Only the first page is printed. Things work ok in Maple 2023. Maybe it is a setting difference or corruption in my install. Could somebody confirm this. Also if you can reproduce the problem could you let me know if it is in Maple 2025. I haven't upgraded yet.

 

2025-05-15_Q_page_print_formating.mw 
2025-05-15_Q_page_print_formating_M_2023.pdf
2025-05-15_Q_page_print_formating_M_2024.pdf

Hi! how to find posint solution of this equation?

Is factorial move fast so that cannot solve?

any advice is appreciated.

restart

NULL

eq := `assuming`([factorial(x)+1 = y^2], [x::posint, y::posint])

factorial(x)+1 = y^2

(1)

`assuming`([solve(eq, {x, y})], [x <= 100, y <= 100])

{x = RootOf(factorial(_Z)-y^2+1), y = y}

(2)
 

NULL

Download find_posint_.mw

The last few mornings there's been a high rate of spam.  I just deleted 5 or 6 posts.  How are they getting through and why haven't they stopped?

... to solve familiar problems using Maple. The attached exercises "test" and "test1" don't produce the familiar result. What am I doing wrong?

test.mw

test1.mw

The following Array does not convert to a column vector as described in ?convert,Vector

A := Array([1, 2, 3]);
convert(A, Vector);# the default orientation should be column;
whattype(%);
convert(convert(A, list), Vector);# here the default orientation is column
                         A := [1, 2, 3]

                           [1, 2, 3]

                          Vector[row]

                              [1]
                              [ ]
                              [2]
                              [ ]
                              [3]

Is there something special with the data structure Array that convert(A, Vector[column]) has to be used to convert to a column vector?

Dear All,

I am facing some problems. This kind of error has been shown ""Error, (in plot/iplot2d/expression) bad range arguments 0.3e-1 = .1 .. .5, 0.3e-1 = .1 .. .5"

Error.mw

Hello,

With the new version 2025, double-clicking a file opens a second instance of Maple.

How can I make this open a new tab in the active instance, as it did with version 2024?

Thank you.

Bests regards.

I wanted to try this simplification in Maple 2025, only to find timelimit hangs.

Waited 3 hrs when timelimit was 30 second. It seems simplify got locked up and timelimit does not work.

Not only that, Maple itself hangs and clicking on retsrat kernel or red small bottom at lower level corner in Maple 2025 has no effect at all.  

Only way is to kill all of Maple from command line.

Make sure to save all your work before trying.

There are two bugs here: First is that timelimit still hangs (even though Maplesoft claimed it is fixed almost 5 years ago)

https://www.mapleprimes.com/maplesoftblog/213986-Introducing-Maple-Learn-officially

You will also be pleased to know that Maple 2021 addresses the timelimit() issue that you mentioned.

The second issue is that one can not close the kernel from frontend. (well, this is because kernel hanged)

Note that closing Maple works using File->EXIT but this leaves the Maple kernel/mserver  running  in background!

So had to go kill that process from command line manually also.

So make sure to do this, else you will end up with many mserver processes running in background after maple is closed if you try this more than one time.

Any one knows why this happens for this example? Should not timelimit have finally been fixed in Maple 2025?

I have been complaining about timelimit not always working for ages. Have no idea why Maplesoft can't figure solution to this problem for good. 

timelimit is the most important command for me, as without it, my program will never work and will just keep hanging.

I spend 50% of my time finding worarounds around Maple bugs instead of what I should be doing which is write more code.

interface(version);

`Standard Worksheet Interface, Maple 2025.0, Linux, March 24 2025 Build ID 1909157`

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1869. The version installed in this computer is 1866 created 2025, May 6, 10:52 hours Pacific Time, found in the directory /home/me/maple/toolbox/2025/Physics Updates/lib/`

SupportTools:-Version();

`The Customer Support Updates version in the MapleCloud is 17 and is the same as the version installed in this computer, created May 5, 2025, 12:37 hours Eastern Time.`

restart;

e:= -a*(-1/2*((1/2*x)^a)^4*(2^a)^4*_C8^4*a*x+1/2*((1/2*x)^a)^3*(2^a)^3*(((2^a)^2*((
1/2*x)^a)^2*_C8^2-a^2*b^2+b^2)^2/(2^a)^2/((1/2*x)^a)^2/_C8^2)^(1/2)*_C8^3*x+1/4
*((1/2*x)^a)^2*(2^a)^2*(((2^a)^2*((1/2*x)^a)^2*_C8^2-a^2*b^2+b^2)^2/(2^a)^2/((1
/2*x)^a)^2/_C8^2)^(1/2)*4^(1/2)*(x^2*(((1/2*x)^a)^4*(2^a)^4*_C8^4*a^2+(2^a)^4*(
(1/2*x)^a)^4*_C8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^a*2^a*(((2^a)^2*((1/2*x)^a)^2*_C8^2-a^2*b^2+b^2)^
2/(2^a)^2/((1/2*x)^a)^2/_C8^2)^(1/2)*_C8*a^3*b^2+2*b^2*(2^a)^2*((1/2*x)^a)^2*
_C8^2-a^4*b^4+2*(1/2*x)^a*2^a*(((2^a)^2*((1/2*x)^a)^2*_C8^2-a^2*b^2+b^2)^2/(2^a
)^2/((1/2*x)^a)^2/_C8^2)^(1/2)*_C8*a*b^2-a^2*b^4+b^4)/(a-1)^2/(1+a)^2/_C8^2/((1
/2*x)^a)^2/(2^a)^2)^(1/2)*_C8^2-a^3*b^4*x+1/2*(1/2*x)^a*2^a*(((2^a)^2*((1/2*x)^
a)^2*_C8^2-a^2*b^2+b^2)^2/(2^a)^2/((1/2*x)^a)^2/_C8^2)^(1/2)*_C8*b^2*x+1/2*a*b^
4*x)/(a-1)/(1+a)/_C8^2/(((2^a)^2*((1/2*x)^a)^2*_C8^2-a^2*b^2+b^2)^2/(2^a)^2/((1
/2*x)^a)^2/_C8^2)^(1/2)/((1/2*x)^a)^2/(2^a)^2:

try
  timelimit(30, (simplify(e) assuming real)):
catch:
   print("cought timelimit");
end try:

 

 

Download timelimit_hang_in_maple_2025.mw

Hello,
Can you tell me how to decompose a rational fraction into simple elements in Fp?

Thank you.

I'm using an old old version of Maple (Maple 7) and there's a mistake in the Mellin Transform which hopefully has long since been fixed in subsequent versions but just in case it hasn't....

I was taking the Mellin Transform of Bessel Functions, specifically BesselK, and it's fine for BesselK(0,x), but when I compute BesselK(0,x^{1/2}), it gives the wrong answer.

In the transform of BesselK(0,x^(1/2)), It should be Gamma(p) not Gamma(p/2).

I'm not sure if this is fixed in newer Maples or if there's a work around. 

Whenever I size a 3d plot, that I'm trying to stretch out the width while keeping the height, never seems to work.  For example using the size=[3000,800] produces a plot area that's bigger but NOT actually a plot stretched in the x axis.  Going to size=[3000,3000] of course then makes the plot and the area bigger and so scales both x and y bigger.  However I don't want the y axis scaled up - I'm trying to scale the plot up - not the area.  And what happened to the window zoom, icon - we've lost zoom control to just magnify + and magnify - (at least in 2022) this seems like a regression. 

Is this plot size a bug or just a plot command that fails to function like it should? 

Hi, I'm new to Maple.

when nesting some multiplications in a summation operator, I get results that I can't figure out.

I've entered 4 formulas that should give the same result, if I understood things correctly. The formula FB gives me problems; am I doing something wrong, or is there a bug in Maple? The problem arose in a more complicated formula, but I trimmed the formula down to a minimum, in order to illustrate the discrepancy.

I hope someone can shed some light on this, because I'm stuck.

Is this a bug (the correct answer = 2)?

 

restart

 

FA := modp(5, product(2, t = 0 .. modp(1-1, 3)))+modp(5, product(2, t = 0 .. modp(2-1, 3))); FB := sum(modp(5, product(2, t = 0 .. modp(q-1, 3))), q = 1 .. 2)

10

(1)

FC := modp(5, product(2, t = 0 .. modp(0, 3)))+modp(5, product(2, t = 0 .. modp(1, 3))); FD := sum(modp(5, product(2, t = 0 .. modp(q, 3))), q = 0 .. 1)

2

(2)

NULL

FA := modp(5, product(2, t = 0 .. modp(1 - 1, 3))) + modp(5, product(2, t = 0 .. modp(2 - 1, 3)));

2

(3)

 

FB := sum(modp(5, product(2, t = 0 .. modp(q - 1, 3))), q = 1 .. 2);

10

(4)

 

FC := modp(5, product(2, t = 0 .. modp(0, 3))) + modp(5, product(2, t = 0 .. modp(1, 3)));

2

(5)

NULL

FD := sum(modp(5, product(2, t = 0 .. modp(q, 3))), q = 0 .. 1);

2

(6)

NULL

Download BugTestSimple.mw

First 6 7 8 9 10 11 12 Last Page 8 of 2421