Maple 2022 Questions and Posts

These are Posts and Questions associated with the product, Maple 2022

Hi,

While playing with this, I got:

> sum(Beta(k,1/2)/(2*k+1)^2,k=1..infinity)
Error, (in SumTools:-DefiniteSum:-ClosedForm) summand is singular in the interval of summation

I don't see how this can be singular, as Beta(k,1/2) is trivially bounded for k>=1, and sum(1/(2*k+1)^2) is absolutely convergent.

Maple is still able to evaluate numerically the inert sum (I get 0.3361376233). If I replace Beta with the expression with GAMMA, I get a result with MeijerG, that doesn't seem to help much for numerical evaluation, as it takes a long time and gives the wrong result -1.966769953*10^10 - (6.886827095*10^8)*I.

I have no reason to expect a closed form for this sum, but the error is surprising. And I don't know MeijerG well enough to explain the numerical error either. It fails with Maple 2020, 2021 and 2022.

A user wondered why an example of integration by parts from the Calculus Study Guide was immediately showing the final answer instead of the parts steps shown in the Guide. 

We suggest users pay special attention to the "Initialize" rows of the Guide example(s) where converting the integral to inert form is discussed. 

Using an inert form of the integral ensures that Maple does not evaluate the integral unexpectedly. 

restart

Int(exp(a*x)*cos(b*x), x)
"(->)"Q

with(IntegrationTools)

Parts(Q, exp(a*x)) = sin(b*x)*exp(a*x)/b-(Int(sin(b*x)*a*exp(a*x)/b, x))

 

Download CSGG-6-1-4.mw

For making a Maple package, an mla file, I were always using a same 4 lines code in a Maple worksheet and it was fine, but in Maple 2022 I receive an error message instead with the same 4 lines of code. Here is a simple example. Let's say I have a directory on my computer "C:\Home\Maple projects\Test_package", inside this directory I have one file "main.mpl" and a folder called "Functions" with a single file "Test.mm". The content of these two files are in below.

main.mpl

# This is just to test savelib at Maple 2022

unprotect('testSavelin');

testSavelib := module()
	option package;
	description "This is just a test.";
	export ModuleCopy, ModuleApply, ModulePrint;
	export Test;

kernelopts( includepath = currentdir() ):
$include "Functions\\Test.mm"

end module;

protect('testSavelib');

Test.mm

Test := proc( x :: integer )
	description "prints a message saying what integer you have given to this function.";
	printf("You have inserted the integer %d.\n", x);
end proc:

Now I open a Maple worksheet and do the followings.

kernelopts(includepath="C:\\Home\\Maple projects\\Test_package"):
read("C:\\Home\\Maple projects\\Test_package\\main.mpl");
LibraryTools:-Create("C:\\Home\\Maple projects\\Test_package\\test.mla");
savelib('testSavelib'," C:\\Home\\Maple projects\\Test_package\\test.mla ");

On previous versions of Maple the result would be a test.mla file with the testSavelib package in it. But in Maple 2022 I receive an error message instead, and the test.mla is an empty mla.

Error, could not open ` C:\Home\Maple projects\CAD project\test.mla \testSavelib.m` for writing

Here is a screenshot.

Maple is usually very fast, and I recently upgraded to 2022 edition. 

However in the new version, I tried to solve this equation here. 
solve(1 + 0.15 = (1 + r__x)^1.28858)

It took Maple 2022, 46 to 118 sec to come up with a solution to the above. I run Windows 11 latest version, have 32 GB of ram and dual NVME disks in my laptop. 

Windows 11 uses almost a Gigabyte of memory do this calculation. 

So what could be wrong? Is mserver not working proberly?

Maple 2022:

It appears that one can use push_back() with an empty DEQueue(), but not push_front().

Since the queue is double-ended and empty, this doesn't make much sense to me. So should this be considered a "bug"?

See the attached

  restart:

#
# This works
#
  A:=DEQueue();
  empty(A);  
  push_back(A,2);
  

module DEQueue () local num, head, tail, storage, dsp; option object; end module

 

true

 

module DEQueue () local num, head, tail, storage, dsp; option object; end module

(1)

#
# But this results in an error!
#
  B:=DEQueue();
  empty(B);
  push_front(B,2);

module DEQueue () local num, head, tail, storage, dsp; option object; end module

 

true

 

Error, invalid return value from method moduledefinition: 'NULL'

 

 

Download DEQueue_Prob.mw

Hello,

In the code below I would expect the a-bar to be replaced in, just like the b below it. Is there something i'm missing here? I applied the bar using the Maple accent palette.

I knew it can't be true that timelimit in Maple 2022 no longer hangs and it is only a matter of time before I find a case where it still hangs.

Here are examples. timelimit hangs. No error or anything, it just hangs. timelimit is just ignored. set the limit to 60 seconds  (CPU time), and waited for 20 minutes (real time) and nothing happend.

I hope in Maple 2023 this will be fixed. Could others confirm this? it only hangs when adding the method=_RETURNVERBOSE otherwise it does not hang.

interface(version);

`Standard Worksheet Interface, Maple 2022.0, Windows 10, March 8 2022 Build ID 1599809`

Examples of timelimit hangs in Maple 2022

 

Example 1

restart;

integrand:=(B*x+A)/(c*x^2+b*x+a)^2/(f*x^2+e*x+d)

try
  timelimit(60,int(integrand,x,method=_RETURNVERBOSE));
catch:
  print("Timed out");
end try;

 

Example 2

restart

integrand:=(5*x^4-x^3+3*x^2+x+2)*(2*x^2-x+3)^(1/2)/(5+2*x)^3

try
    timelimit(60,int(integrand,x,method = _RETURNVERBOSE));
catch:
  print("Timed out");
end try;

 

 

Download int_hangs.mw

This is a serious problem.

I change "how should maple handle the creation of new math engine?" to "Create new engine for each document". Then click on "Apply globally".  This is under Tools->Options->General

After I close Maple and start it again, I found it back to "Share one engine among all documents" ??

Why is that and how to make this permanent? 

Btw, the start Maple 2022 icon still says "Maple 2022 shared server". THis is in the start program menu. I complained about this in Maple 2021 but it is still not fixed.  https://www.mapleprimes.com/questions/231901-Why-Maple-2021-Only-Shows-shared-Server

I do not think this has anything to do with it. But who knows.

I noticed this when I started new worksheet and could not do anything in it because another worksheet was running something even though I made sure I had set the engine to start new one for each worksheet (this is the very first thing I do after I install Maple each time).

Any workaround to make the setting for the engine not change after closing Maple?

Windows 10. Maple 2022.

This is the first time I see such an error installing Maple on windows.

Right after the MS VS run-time installation completed (which is started by Maple installer) I got an error message saying it could not install fonts and to install them "manually".

Are there detailed instructions how is one supposed to do this? And what does this actually affect? As Maple starts ok and so far I see no issue with fonts but I have not done much with it yet other than open a worksheet and type few commands.

Looking at the folder in question, I see no instructions. Only font files. It will be good if Maplesoft could provide instructions for users on how to do that.  I do not want to do something that could end breaking the Maple installation or make things worst.

 

Background pattern

 

Today is one of my favorite days of the year. After months and months of hard work by a lot of people, it’s finally arrived:

 

It's Maple launch day!

 

Yes, I am very pleased to announce that Maple 2022 is here.

 

As we’ve done in years past, Samir and I started this release by spending many hours reviewing feedback from Maple Primes posts, support emails, sessions with staff who regularly talk with customers and who use Maple themselves, and our own direct conversations with customers. Of course a year is never enough to implement every good idea, but our goal was to identity a feature set that would appeal to, delight, and hopefully excite our customers.

 

Ultimately, you will be the judge, but I can tell that there are some things in Maple 2022 that I am personally very excited about. These are “quality of life” improvements that have been requested by customs and make some things in Maple that were frankly kind of annoying a lot better. The rest of this post will discuss my favorite improvements in more detail (or you can watch this video), and of course, you can get much more information about these and all the other improvements in What’s New in Maple 2022.

 

#1 – Did you ever find yourself jumping back and forth between your Maple document and Print Preview, again and again, as you prepare your worksheet for printing or export to PDF? It can be a pain, especially with long documents that include plots, tables, and sections. So I'm happy to announce that Maple 2022 includes a new Print Layout mode. This new layout mode lets you see the page boundaries as you edit the document, so you can adjust your content as you go. In Maple 2022, what you see on the page is what you get when you print or export to PDF. Hurray!

 

 

 

 

#2 – Are you tired of explaining to your students why the graph of tan(x) doesn’t look right in Maple?  Good news!  With Maple 2022, you won’t have to have that conversation ever again. Maple 2022's new adaptive plotting algorithm means that when you plot tan(x), 1/(1-x), floor and ceiling functions, and most other curves with discontinuities, you’ll get what you expect by default – no more vertical lines, no need to specify the discont option, and it’s still fast.

Diagram

Description automatically generated

 

#3 – Did you ever run into a situation where zooming, panning, or resizing your plot didn’t actually give you the better view of the plot you were looking for? Now Maple recomputes and redraws when needed to give you what you wanted – a good look at your plot.

   

 

#4 – Are you a fan of the Plot Builder? If you are, I'm delighted to let you know that the Plot Builder in Maple 2022 now supports plotting multiple expressions together on the same axes. So don't hold back - use the Plot Builder to customize plots and animations of any number of 2-D and 3-D expressions plots and animations. (We also got rid of that annoying empty plot when you first open it, too.)

 

 

#5 - And, by popular demand, Maple 2022 now magnifies the text in the table of contents/search results when you magnify a help page. No more squinting to find the topic of interest. My eyes are much happier.

 

Those are my favorites, but there is a lot more in the release. To learn more about all the improvements in Maple 2022, visit What’s New in Maple 2022

First 37 38 39 Page 39 of 39