Anthrazit

935 Reputation

13 Badges

7 years, 35 days

MaplePrimes Activity


These are questions asked by Anthrazit

I'm trying to play around using Maple from other programs (Python, Grasshopper, etc.).

As far as I can see the options are cmaple.exe (command line) and OpenMaple.

Regarding OpenMaple I'm stuck with getting it to work. As far as I can see, I need to define the MAPLE variable, and extend the path, right?

I've added 2 things to the user environment variable in Windows.

MAPLE=C:\Program Files\Maple 2026
Path=.....;C:\Program Files\Maple 2026\bin.X86_64_WINDOWS

To test I've used the program provided in the help file.

import maplesoft.maple.namespace as msymbol

Unfortunately I get: ModuleNotFoundError: No module named 'maplesoft'

Any hints?

I'm trying to rewrite my initialization routines a bit, and want to find out if there are any other procedures with a certain name that should be called.
However there seems to be a problem with the scope. I'm trying to explain that with a little program.

The question is - why is InitSpecific not found by the InitCommon procedure here?

Module1 := module()
> 

 

``

Module2 := module()

Module1:-InitCommon()

"false"

(1)

Module2:-InitSpecific()

"InitSpecific"

(2)

NULL

Download InitCommon.mw

I have usually used $include within a module when building packages, where the included file has all the procedures.

What I would like to have is to have the module itself in an external file which would be included.

read "this:///lib/NODEFunctions";
savelib('NODEFunctions', "this://");

$include "NODEXML.mm"
# read "this:///lib/NODEXML";
savelib('NODEXML', "this://");

The first 2 lines show the usual way I do it, where NODEFunctions is a module within the Maple file. In that file there is an $include for the proc() parts only.

The second attempt unfortunatly throws a "Error, unexpected string" error. I have tried both with and with a ; at the end of the $include line.

"NODEXML.mm" is a file with the complete module definition with proc().

Can someone explain what the meaning of "visible character width" for e.g. TextArea components is?

My understanding is that the width should correspond to the number of characters that are visible in the TextArea. But apparently this is not the case.

A definition of 4 allows at least 8 characters. A definition of 6 at least 12, 8 gives 16 and 10 gives 20.

Test_visible_character_width.mw

There seems to be a regression in Maple 2026 in the XMLTools:-ParseFile function.

As Maple2026 is not yet in the list of products to be chosen, I have added it in the subject.

Error, (in XMLTools:-ParseFile) invalid input: too many and/or wrong type of arguments passed to XMLTools:-NSXML:-Parser:-ParseFile; first unused argument is prolog = true

The test file is right from the help related to ParseFile.
Test_XML.mw

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