# Items tagged with librarylibrary Tagged Items Feed

### Maple user defined function problem

November 08 2012 by Maple 16

0

2

Hello,

I have defined a function(say fun) to do certain task, it works well when I call it from a script file(say script1). However, when I copy the complete script1 and paste onto another script file(say script2), the function, fun, doesn't execute. It's very peculiar as my project requires lot of modification, so I copy the old script and...

### user defined Function

October 29 2012 by Maple 16

0

4

Hello,

1. Is it possible to create a function file in Maple and call the function(file) from the main program(like Matlab?). If yes, please give me an example case.

I want to create a function file which has the general input terms and call the function from another script file without copying/running all the code.

2. Is it possible to run 'recursive function' in maple?

3. How can I create library of my function files?(like in Matlab I can create...

### How to use LibraryTools[Save]?

October 09 2012 by Maple 14

0

1

Hi,

I want to put some code into a Maple library. I'm new to producing packages. The following code runs OK, but when I try to use one of the procedures added by the LibraryTools[Save] command, Maple returns

input: MySum(a, b);
output: MyMapleLibrary:-MySum(a, b)

Why does Maple return an unevaluated call to MySum?

The code is below:

restart:
with(LibraryTools):

MyMapleLibrary:=module()
description "A sample Maple library.":

### Make the standard Maple library write...

October 09 2012 by Maple 14

0

1

Hi,

In chapter 2 of the Advanced Programming Guide, it says:

"Important Always ensure that the standard Maple library is write-protected to avoid saving expressions in it. If you accidentally save something to the standard Maple library, you may need to restore the original from media on which you obtained the Maple software".

How do I make the standard Maple library write-protected? Is it by marking as read-only the following folder?

### Can one get the source code back from...

August 21 2012 by Maple 15

1

3

Hi,

I wrote a procedure and saved it into a .mla library, then accidentally lost the file containing the initial code. Can I get it back from the library ? I didn't find the answer in the help on LibraryTools.

Thank you.

### External Library libgraphtheory.so could...

July 06 2012 by Maple 13

0

1

Hi!

I've got this annoying problem and it's quite simple reproducible.

> with(GraphTheory): G := Graph({{a, b}, {b, c}, {c, d}}); Edges(G);

Edges(G) returns me

Error, (in EdgesExt) external library libgraphtheory.so could not be found/used

It's the first time I encounter such a problem and have no idea on how to solve it, any advice?

I can see that libgraphtheory.so...

### How to see the code inside library of...

June 17 2012 by Maple

any software help to see the Maple code inside the library with extension .lib?

### Total number of Functions in Maple

May 27 2012 by Maple

This is branched from Maple 16.01

I don't know the reason for the break.  In trying to replicate the graph shown for Mathematica for Maple I am finding it difficult to locate the number of mathematical functions for various versions of Maple.

The only reference I find is that Maple 16 contains over 5000 mathematical functions, many more than Mathematica 8, but they are programmed different so I can't compare that.  However trying to compare it...

### Trig Packages for Maple 15- MAC

April 30 2012 by Maple

0

1

I have a problem with inputting a new package in my version of maple (15) for mac. The packes makes it possible to do calculations with cos/sin/tan in degrees instead of radians. I need to use this for my Engeneering studies in Denmark.

In pc you just place the package in the labrary subfolder under the Maple 15 folder, but i can't find that subfolder anywhere on my mac??
Where should i put the package to make it work?

I have 2 files; "Trig.ind" and "Trig.lib" - whichone to use?

### How to load a library from within a...

April 23 2012 by Maple

0

3

I wrote my own maple library. Some of its procedures require the LinearAlgebra-library.

Is there a way to automatically load LinearAlgebra when loading my library? (I tried to use 'use' but it didnt help )
Currently i load my library with

Is there any good refernce to learn how to write maple libraries the right way? the maple help isnt actually very helpful.

### changing libname on an mac platform

November 13 2011 by Maple 15

0

1

I am considering bu;ying an imac and want to run maple 15. I have a personal library, called Mylib. I use on my windows platform. I use an ini file that maple 15 reads when it first opens. In this file I modify libname with the statement,

> libname:=libname,"c:\Mylib";

My question is how do I do this on the mac version of maple?

### Error Importing the Modelica Fluid Libra...

November 09 2011 by MapleSim 5

0

2

Hello,

I downloaded the Modelica_Fluid 1.0 Library from the Modelica website. When I try to import this library into MapleSim5 I get the following error:

Duplicate class definition found for Modelica_Fluid.Pipes.BaseClasses.WallFriction.Detailed.msim/UNKNOWN

I then click "ok" and the importing stops working with the last message being:

Querying Modelica classes...

Can anybody offer help with this?

Christian

October 29 2011 by Maple 15

0

3

With Maple15.01 on a x86_64 linux box running Fedora 14, I get the following error when trying to run a basic comand from LinearAlgebra:

> with(LinearAlgebra);
> R := RandomMatrix(4, 4):
> Eigenvalues(R);
Error, (in ifactor/SmallFactors/ext) external library libmodLA.so could not be found/used

Could someone please tell me what the required environment setup is so that Maple can find and use the external shared libraries?...

### Configuring a Matlab-Maple Link in Version...

October 11 2011 by Maple 13

1

1

I cannot set up a link between the student version of Maple 13 and Matlab.

I have followed the instrutions in ?Matlab,setup and things still do not work. I have even done everything manually. On the prompt I have done many variations on the following:

$export PATH=$PATH:/Library/Frameworks/Maple.framework/Versions/13/bin

### cost of global name creation

August 06 2011 by Maple

5

5

Most programs will not produce and assign to a large number of global "top-level" names. But it is interesting that the cost associated with such global name assignment is related to the number of entries in libname.

A possible cause of this cost is the need to check whether the name is protected, before assigning.

The following timings were made on 32bit Maple 15 running on Windows 7, on an Intel i7. The set of four timings is...

 1 2 Page 1 of 2