Melvin Brown

79 Reputation

3 Badges

13 years, 164 days

Social Networks and Content at

Maple Application Center

MaplePrimes Activity

These are questions asked by Melvin Brown

I have three procedures with calling struture:


    > call B (argseq)

    > call C (argseq)

     > etc code

     > return results

end A()

Procedures A, B, C are defined in a single MAPLE .mw worksheet, and each time I use them I have to reload them by pressing return.

Please can you suggest the best course of action?  I have been reading about modules but am not certain that A knows about B and C in the dame module when it calls them

Can anyone help please?




I've created compiled and executed Fortran 77 code, and then created a .dll file - using g77, for calling as external function in MAPLE 18. I have received the following : Error loading external library. Details are below. Can anyone explain what is going wrong?

Below is the history the steps I have taken:

Here is the contenct of my FORTAN source code file: test2.for 

REAL x,y, mult
x = 4.0
y = 3.0
OUT = mult(y,x)
11 FORMAT(1X,3E12.4)

function mult( a, b )
REAL a,b, mult
mult = a*b

The compile, execute and shared library creation steps are as follows  (using g77):

g77 -v -Wall -c -malign-double test2.for
g77 -v "test2.for" -o "test2" 
..execution ran successfully. Creation of dll:

g77 -s -o "test2.dll" "test2.for"

...this executed successfully

Defining as external function in MAPLE:
fmult := define_external('mult', LIB = "S:/MRBwork/IT/Fortran/projects/MAPLE - Fortran/CERN primes/test2.dll", FORTRAN, 'a'::(float[4]), 'b'::(float[4]), RETURN::(float[4]))

... but received following error.

Error, external linking: error loading external library S:/MRBwork/IT/Fortran/projects/MAPLE - Fortran/CERN primes/test2.dll: @�b%

Can someone take and look at the above and explain what may be causing the erroo ion the loading the .dll file?



I am running under Windows 7 and using the following command in a MAPLE .mw file to convert a group of .mw files to WWW format:

MapleWWWW:-Install("S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Input/","S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Output/","");
Error: FileTools:-Text:-ReadFile("file or directory does not exist: %1")
Error: FileTools:-Text:-ReadFile("file or directory does not exist: %1")

As you can see I am getting an error return. I believe I have placed the module in the right directory. As a test I ran the following:

FileTools[IsReadable]("S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Input/"); FileTools[IsReadable]("S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Output/");

So both folders are recognised by MAPLE.

Can anyone help debug this please?


I've recently uploaded an application to the MAPLE Application Centre:


I have since tried to make edits to the application and to submit them using the edit facility there, but none has been implemented. Please would some one let me know ne who can help resolve this problem? 



Having overcome a Java VM problem, I have a further problem which is now
limiting my use of MAPLE 14 on Vista:  plotting is limited to plots with
relatively few points or graphical content.

Here is an example in MAPLE 14 (in classic and the normal modes):

> with(RandomTools):with(Statistics):
> N:=400;
> rlist:=(Generate(list(float(range=-1..1),N))):
> plot(rlist,color=black,thickness=1);

This works fine up to N=170,...

1 2 3 4 5 6 Page 5 of 6