Daniel Skoog

Daniel Skoog

1641 Reputation

15 Badges

8 years, 17 days
Maple Product Manager

Social Networks and Content at Maplesoft.com

Maple Application Center
Daniel Skoog is a Product Manager for Maplesoft. He holds a B.Sc. in Mathematics from Queen’s University, Canada and a M.Sc. in Financial Mathematics from Uppsala University, Sweden. Daniel joined Maplesoft in 2011 and has used his applied technical expertise of mathematics, statistics, data analysis and software design to deliver several exciting new releases. Daniel has also contributed several commands to the Maple library, having authored new routines in Statistics, Finance and data analysis.

MaplePrimes Activity

These are answers submitted by Daniel Skoog

You could start by using the CodeGeneration:-Python package to translate the Maple code to Python. You can also try out the code generation assistant in Maple by going to Tools - Assistants - Code Generation. You can also try to use the code generation assistant in the MapleCloud here: https://maple.cloud/app/6239780623876096/Code+Generation+Assistant

There's no way for any external language to access or control the Maple user interface. If you are interested in using Python code in Maple, then that is possible as of Maple 2018. See https://www.maplesoft.com/products/maple/new_features/Maple2018/Connectivity.aspx

As of Maple 2018, you can call Python code from inside of Maple. For more details see the what's new page for Connectivity.

The Export command should probably be able to handle this use case, but it seems like it doesn't. Here's something that you might try:

x := convert([seq(1..100)], Vector[column]):
y := 0.1*~x:
tmp := GenerateGaussian(100, 2, .6):
tmp2 := convert(tmp*~y, Vector[column]):
ad1 := <<x>|<tmp2>>:


This exports the file to disk, then adds that exported file as an attachment in the workbook. It then deletes the file it added to disk.

Another option you might look at is saving the matrix itself to the workbook. If you use:


This will save the result of the matrix into the workbook itself, so that next time you open the workbook, you can see the value for ad1 just by typing in ad1. I have attached an example of this (and the other suggestion) to this post here: CSV.zip

The subsection option was removed in 2018.0. You can read more about it and other interface changes here:


Since you can create a new "sub-section" by simply inserting a section inside of a section, we felt that it was redundant functionality and elected to remove it in order to simplify the interface.

In order to add an image to the plot in this application, I added a background image to the default plot (here's a page that describes the background image feature: https://www.maplesoft.com/support/help/Maple/view.aspx?path=updates/Maple18/BackgroundImages ). If you open the startup code (the gear icon on the toolbar) you will see the line:

p1:=plot([],axes=boxed, view=[-10..10,-10..10]);

If you modify this to include the path to an image, then you can use a background image:

p1:=plot([],background="this://rollercoaster.jpg",axes=boxed, view=[-10..10,-10..10]);

I have attached a copy of a Maple workbook that includes the image and the changed path: CollectingPoints.zip

Let me know if you have any questions.

Good question.

What's going on here is that there are two "versions" of version:

The Physics package has an export called Version. This corresponds to the date at which the Physics package was last built. You can see this using:


To the best of my knowledge, no other Maple package (built-in or user authored) has implemented a similar Version command.


The second version is the upload version in the cloud. Whenever an application or package is updated in the MapleCloud, there is an attribute that is updated which denotes how many times that content has been updated. At the time of this writing in the case of the Physics package, there has been 38 uploaded "versions" for the Physics package.

You can see this using:


This version attribute is something that every MapleCloud package has. You can query the other MapleCloud packages in a similar manner as I described in the code directly above, namely by getting the property of the unique identifying number of the package in the Cloud.

Since you did state that the list will increase to a point and then decrease (thus avoiding any issues with multiple max values), the index option for the max or min commands should help here. The max[index] command returns the index position for the maximal value in a list. For example,


This returns 3.

Thus in order to return the list of values up to and including the max value, index the original list by the following:


Try using the view option:



A fix for this issue is in Maple 2018.0

We have submitted several issue reports for this post. Thanks.

I have submitted a change request for this issue. Thanks for reporting it.

I have submitted an internal change report. Thanks.

I've submitted an internal change report.Thanks.

I've submitted an internal change report.Thanks.

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