Items tagged with worksheet

A number of MaplePrimers have asked how one might use the section and subsections of a Maple worksheet to structure the source code of an extended Maple package.  The usual answer is that it cannot be done; a module-based Maple package must be assigned in a single input region in a worksheet.  A recommended alternative is to write the source in text files and use either command line tools or the Maple read command from a worksheet to assign the package.  Because the read command handles Maple preprocessor macros, specifically the $include macro, the source can be conveniently split into smaller files.

I prefer this file-based method for development because text files are generally more robust than Maple worksheets, can be edited with the user's preferred editor, can be put under version control, and can be searched and modified by standard Unix-based tools.  However, not everyone is familiar with this method of development.  With that in mind, I wrote a small Maple package, CodeBuilder, that permits splitting the source of a Maple package (or any Maple code) into separate code edit regions in a standard Maple worksheet, using $include macros to include the source of other regions.  To build the package, the code edit regions are written to external files, using the names of the regions as the local file name relative to a temporary directory.

The package includes a method to run mint on the source code.  The result can be either printed in the worksheet or displayed in a pop-up maplet that allows selecting the infolevel and the region to check.

CodeBuilder includes help pages and a simple example (referenced from the top-level help page) demonstrating the usage.  To install the package, unzip the attached zip file and follow the directions in the README file.

CodeBuilder-1-0-3.zip

Errata Just noticed that a last minute change broke some of the code.  Do not bother with the 1-0-1 version; I'll upload a new version shortly.  The latest version (1-0-3) is now available.

Hi everybody, 

I am working with Maple 2015.2 ; system = OS X El Capitan
I would like to compare the outputs of two files by using  the Worksheet:-Comparator command

OriginalFile.mw file contains this single instruction
> a:=1;

ModifiedFile.mw contains this single instruction
> a := 2;

Both us are located on my desktop, which is also my current directory in the worksheet from which I am going to run the comparison.

MyDir := cat(currentdir(), "/Desktop/");
OriginalFile := cat(MyDir, "OriginalFile.mw"):
ModifiedFile := cat(MyDir, "ModifiedFile.mw"):

# to verify that all is going well I use these two commands 
# Worksheet:-DisplayFile(OriginalFile):
# Worksheet:-DisplayFile(ModifiedFile):

Running the  command  Worksheet:-Comparator(OriginalFile, ModifiedFile) returns me error messages :
The first one is  (after having selected  "compare" and next "run" in the Comparator Maplet) 

and the second one (after having cliked ont the "OK" button" on this alert window)

Note that the same thing happens if I use Worksheet:-Comparator() and select the two files with the browsers
Could you please help me to understand what happens ?

Thanks in advance

 

If I go to the menu under file and open.  Or similarily CRTL-o opens the file query dialog box. 

Can I do this crtl-o programmatically?

How would I programmatically open a maple worksheet?

I thought this would work but it brought up a -1

ssystem("c:\\Users\laptop22\Documents\Start2Test.mw")

 

Alle_opgaver.mw
 

 

Dear all

My son is studying at the Danish University, DTU, where he studies engineering. He is experiencing a problem with maple as the system writes :"There were problems during the loading process. Your worksheet may be incomplete". I can see that other people have had  their file corrected by a script by Joe Riel 6845.I just want to make sure that the right way to use this script is to open .mw file in an texteditor like notepad++ and then copy the script in top of the file and then save the file again and open it in maple ? I would appreciate your help very much. As it looks now,  my son has lost his entire work, if this error cant be corrected.

Best regards
Lars Wagenblast

What method of worksheet dissemination maximizes the number of recipients and methods of access?

Our students do have access to Maple on campus. However some students beyond our campus do not. Hence I'm trying maximize the number of recipients. This means that the recipient can accesses my worksheet either via tradition computer OSs such as Mac, Linux, Windows, or via tablet / personal computer OSs: iOS or Android. 

For a static worksheet, I've found PDF is the obvious choice. However, I'm writing more modifiable worksheets. The most obvious options I see are:

* MaplePlayer
* MapleCloud
* Maple WWW, by DigiArea Team

In investigating the options, I have found that:
* Maple Player is useful to those who have no access to Maple, but there appears to be no Android/iOS version of it.
* MapleCloud looks very promising since all OSs read the web, but there appears to be no way a person can join a private group via the MapleCloud website. Am I missing or misreading the help?
* Maple WWW, while pretty, appears to be painfully slow on a tablet (at least the examples I looked at).

Thus the initial purpose of this post is to answer the questions I raise, which I view as far more strategic, with more nuances than most questions that appear on this forum. And the second purpose is to initiate more discussion among the users year, particularly from the educational community, about guiding the direction of Maple.

I look forward to your comments and suggestions.

I cannot seem to upload my .mw file.  What is going on with the this new MAPLEPrimes?  I need some help getting my file uploaded.  What other avenue is available?

 

Hey, this is not the I've had this encounter. I want to open this saved document but when I open it and Maple starts up it just hits me with "A problem was encountered while opening the workbook. Database is not opened". How can I get to open it properly and see my math notes?

How can this be prevented?

When I try to upload the file in this message it says "Cant open a null file"

Any help?

 

Jacob

 

Hi

 

I have a maple file (saved as a workbook) which is saved in dropbox and has been saved during progress.  However, when I open the last version in maple, it opens a version which looks like it is some of the first versions. I have tried following things without success:

* Restore previous versions from dropbox and open them in maple.  No matter which version I open, it shows the same two lines of text.  In dropbox I can see all previous versions and their file size which all are different and increasing in size over time as more was added to the file.

* send the file to another computer and open in maple on that computer

 

Does anybody have the answer to what I can do/what the problem is?

Thanks!

 

/Katie

I need help i worked hard on this work but Maple just won´t open my work!!


Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/problem-opgaver-jakob-2.y.mw .

Download problem-opgaver-jakob-2.y.mw

Hey, I have a problem loading one of my maple files as the headline states.

I have seen a sugestion on how to fix it:

http://www.mapleprimes.com/questions/129377-There-Were-Problems-During-The-Loading

but I do not know how to use it proberly, and can therefore not fix my problem.

What do I do?

Elektriske_felter.mw


 

 

Hello people in mapleprimes,

I have a question:
What are you doing when you use maple in calculating, for example, your paper,
to avoid missing, for example, variables you use, or for your needs to look back the outcomes you obtained before?
If this is a paper-using work, on considering what to do next, you will read some pieces of papers you wrote and
on which you had calculated and obtained necessary equations. But, with small monitor 13 inch, and with
inconvenience of dealing with things in PC, compared with papers, I feel some stress in using maple in writing a paper.
So, now, I am asking you what kind of methods you has devised to make what you are writing compact and easy,
for you to handle with what you are writing.

I know surely that there are the document block, which enables output or input to not be shown, the workbook,
which is helpful in putting attached worksheets or jpg files together at one workbook, and the distinction of ":" and ";",
which in the case of the former, hides expressions in the outcome.

But, yet, I want to ask you about the ways you use to make it easy to write something.
If you have some, I will be very glad if you show it here.

Best wishes.

taro

 

 

 

 

 

 

Hey 

 

I just went from maple 18 to maple 2016. I use maple as a writing program aswell for notes and school.

 

I realized that maple 2016 does output lines when writing math in a textbox. This is kind of annoying since notes in chemistry is not allways a true mathematical expression. Therefore maple complains. Is there anyway to change this? 

Andreas

I have a worksheet (.mw) file that I want to export using a statement to avoid tedious GUI clicking.

How to export a worksheet (.mw) to Maple Input (.mpl) using a statement in the worksheet, so I can just execute the worksheet, and then the Maple Input (.mpl) file is generated?

 

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