Items tagged with custom_package

Feed

I can't understand how to install this package "SADE" in Maple 17. Secondly, I am new to Maple. So Please guide me the process to install this package and how to use it. Thanks!

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.

I have been using Maple for many years and have created many Maple procedures for my own use in different projects. My usual practice is to place the procedures in a .txt file using WordPad or NotePad on my Windows machines. Then to load, for example, a file named C:\Users\Ed\Desktop\Top Quandles\Procedures.txt I use the command 

read("C:\\Users\\Ed\\Desktop\\Top Quandles\\Procedures.txt");
or
read("C:/Users/Ed/Desktop/Top Quandles/Procedures.txt");


Or I can leave the path off if the file is in the same folder as my worksheet.

This has always worked well for me. But have two questions:

1. Is there is a better way to save and load a bunch of procedures? Also I might mention that I frequently have to go into the file and change procedures or add new procedures, data, etc...

2. Recently I had occasion to send a worksheet and a txt file to a Mac user. We were not able to get the worksheet I sent him to read the .txt file on his Mac. Any suggestions on how to do that on a Mac? We tried putting them both in the same folder and just using a simple read("Procedures.txt"); command but the Mac didn't like that.

Any suggestions about either of these two issues would be appreciated.

Thanks,

Edwin

Hello people in mapleprimes,

I put a function h into my original package named z5.

And, I used it as

> h(x+y);

then, the output is

x*`z5:-h`(x)/(x+y)+y*`z5:-h`(y)/(x+y)

I want to have

x*h(x)/(x+y)+y*h(y)/(x+y),

not z5:-h for h.

How should I do for "h" to be kept from changing  to "z5:-h"?

Best wishes.

taro

 

part other than z5 needs designating a directory for library.**********

>new_lib_dir3 :=Please put an appropriate directory

>z5:=module() option package;
>export numer_expand,h;
>numer_expand := a->expand(numer(a))/denom(a); h:= F-> expand
>(evalindets(D(F)/F, specfunc(D), d-> op(d)*'h'(op(d)))); end module;

>LibraryTools:-Save('z5',new_lib_dir3);
>restart;

>libname:=new_lib_dir3,libname;

>with(z5);

>h(x+y);

               x*`z5:-h`(x)/(x+y)+y*`z5:-h`(y)/(x+y)

 

DirectSearch optimization package, version 2 is now available.

        The DirectSearch package is a collection of commands to numerically compute local and global minimums (maximums) of nonlinear multivariate function with (without) constraints. The package optimization methods are universal derivative-free direct searching methods, i.e. they...

Page 1 of 1