Melvin Brown

79 Reputation

6 Badges

13 years, 182 days

Social Networks and Content at Maplesoft.com

Maple Application Center

MaplePrimes Activity


These are questions asked by Melvin Brown

I have three procedures with calling struture:

A(argseq) 

    > 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?

MRB

 

 

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 

PROGRAM MAIN
REAL x,y, mult
x = 4.0
y = 3.0
OUT = mult(y,x)
WRITE(UNIT=*,FMT=11) OUT,x,y
11 FORMAT(1X,3E12.4)
END


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

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?

Melvin

 

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/","http://digi-area.com/light/MapleWWW/js/maple-www.js");
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/");
true
true

So both folders are recognised by MAPLE.

Can anyone help debug this please?

MRB

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

 

http://www.maplesoft.com/applications/view.aspx?SID=121124

 

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? 

 

MRB

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