Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I crated this "defs.mpl" File:
assume(a>0,b>=a,b>d,L>b,u>0,u<L):
def4 := ['L' = 2865, 'a' = 315, 'b' = 315, 'd' = 210, 'h' = 140]:
def5 := ['L' = 2865, 'a' = 315, 'b' = 315, 'd' = 280, 'h' = 140]:

clear:=proc()
 unassign('L',' a',' b',' d',' h');
 assume(a>0,b>=a,b>d,L>b,u>0,u<L);
 is(b>0);
end proc:

reassign:=proc(defs)
 clear();
 assume(a>0,b>=a,b>d,L>b,u>0,u<L);
 assign(defs);
 defs;
end proc:

Then it produced this Output:

> read "defs.mpl"
> assign(def4);
> def4;
          [2865 = 2865, 315 = 315, 315 = 315, 210 = 210, 140 = 140]

> clear();
                                     true

> def4;
                [L = 2865, a = 315, b = 315, d = 210, h = 140]

> reassign(def5);
                [L = 2865, a = 315, b = 315, d = 280, h = 140]

> def5;
               [L = 2865, a = 315, b = 315, d = 280, 140 = 140]

> def4;
               [L = 2865, a = 315, b = 315, d = 210, 140 = 140]

Why is here 'h' replaced by its value, while the other variable names are printed as expected.

In my Settings I specified that assumed variables shall not have an annotation.

What are the best techniques for performing introspection in Maple Documents?

I would like to use the content within a Maple Document (.mw) as input to calculations and operations within the same document. I am aware of the DocumentTools Package, but it seems that needs to open a copy of the current document to perform operations and is dependent on the current document being saved to disk rather than working with what is already in memory. What techniques are available to work with the document's data model and content within the document, such section headings, section structure, and paragraph text content - as opposed to just the variables that have been defined?
 

Any suggestions for Electronic Laboratory Notebook (ELN) systems that work well with Maple Documents?

I find Maple Documents (.mw) useful for scientific work and data analysis. I frequently organize my documents in the style of a laboratory notebook experiment. The collapsible section heading and execution repeatability are key capabilities. Managing a collection of Maple Documents over time via file systems and revision controls systems (e.g., Git) is adequate, however it seems the workflow support and compliance capabilities of an ELN would be useful as well. A typical tension in the class of ELN systems is that many of them are prescriptive about the editor, requiring or strongly encouraging something like a web-based WYSIWYG editor that lacks the literate programming capabilities of Maple. If anyone has had a good experience taking advantage of ELN capabilities without them interfering with a Maple-document centric authoring workflow, please let me know.

Error, (in LinearAlgebra:-Modular:-IntegerLinearSolve) invalid arguments to iratrecon

I ran a procedure that uses only `solve/linear`. The above error was returned. Any ideas how to prevent it or why it happened?

How does `solve/linear` reach LinearAlgebra:-Modular:-IntegerLinearSolve?

Does Maple natively work while using a VPN? If not, where do I go to learn how to configure it so it will work using a VPN? In Maple 2025 and Maple 2026, Maple will soft-lock when when attempting to execute any worksheet or attempting to read any help section when using a VPN under the default configuration configuration of Maple. 

If I compare Maple 2024 and Maple 2022 on the exact same worksheet, Maple 2022 executes twice as fast as Maple 2024.

For my kind of work this is very serious. I have programs that can take 10 or more days to complete calcuations, therefore what Maple 2022 will calculate in 10 days, Maple 2024 takes 20 days. It has wasted a LOT of my time, whatever the reason is.

Here is the code: 
1) MM must be a high order series expansion with complex arguments so that simplification is not trivial. Use any such asymptotic expansion.
NOTE: I can supply an expansion for a developer through official Maple support, but cannot release it publicly as it is part of a future publication. It is easy enough for anyone to create a complex expansion, with difficult simplification.
2) The simplification of the expansion must at least take a couple of minutes at e.g. Order=10 for the comparison to make sense.
3) Then run the program for Maple 2022 and Maple 2024 respectively and note execution time.
4) This was run on Linux.

As you will see the Maple 2024 calculation takes twice as long as the Maple 2022 calculation. 
SEE RESULTS AT END OF PROGRAM.

testorder:=6;                             # Enter the expansion order here.
MM:=??:                                   # Enter the expansion here.
series(MM, x = 0, testorder):
convert(%, polynom):
map(simplify, %):
#collect(%, x, simplify):
simplify(%):

                        testorder := 6

RESULTS:

OPTION1 Calculation time for series MM,

Maple 2024
O(4):   Linux Wall-Clock Time: 1.000 seconds
O(6):   Linux Wall-Clock Time: 11.000 seconds
O(8):   Linux Wall-Clock Time: 153.000 seconds
O(10): Linux Wall-Clock Time: 2135.000 seconds 
O(12): Linux Wall-Clock Time:  19593.000 seconds

Maple 2022
O(4):   Linux Wall-Clock Time: 0.000 seconds
O(6):   Linux Wall-Clock Time: 9.000 seconds
O(8):   Linux Wall-Clock Time: 88.000 seconds
O(10): Linux Wall-Clock Time: 1062.000 seconds 
O(12): Linux Wall-Clock Time: 8987.000 seconds

Is Maple 2026 compatible with Mac OS27.1 ___________________________________________________________

I am attaching two worksheets.  The first worksheet titled testflaw shows the original state of a module. The module in the startup code area contained two exported variables which were never implemented. The module had been used in testing the code.  The second worksheet testflaw2 shows the result after deleting the exported variables. (AsTable and TestAssociativity).  Note that when the worksheet opens a typesetting error code occurs.  It appears that the typesetting routines retain knowledge of the exported variables even after a Restart command.  

testflaw.mw    

testflaw.mw

On my installations I can neither convert nor copy/paste code with comments from 2D-Math to 1D without loosing the comments.
Also pasting to Word removes the comments.

Is that a known behaviour? Any workarounds?

This input

" #` Parameters #`  "(* *)"  H = 0.01; #` height in meter`  R := 0.006*3/2; #` Radius in m`  k := 0.540; #` conductivity in W/m/K`  rho := 1060.0; #` density in kg/m^3`"

1060.0

(1)

copy and paste here

> 

H = 0.01;
R := 0.006*3/2;
k := 0.540;
rho := 1060.0;

H = 0.1e-1

 

0.9000000000e-2

 

.540

 

1060.0

(2)

or here

H = 0.01;

Download copy_comments.mw

In the same sheet (Engineering Notation)

you can have: 

 

and

  

and even correct formating ... 

but there is no possibility to correct anything, it just ignores the settings ... unfortunately, I am pushed to use an older version ...

Hope this will change.

I specifically want to install the Maple 2024 version as I am implementing a open-source research project which specifically states the requirement of Maple 2024, but in the 15 days free trial version I am not able to to so, can someone please help me!

Hi everyone,

I am experiencing what appears to be a problem with Numeric Formatting in Maple 2026.

I have a worksheet where I calculate a numerical value using evalf, for example:

evalf(1 - (3.7*90)/(10.4*3600))

which returns

0.4663461539

When I select the output and use the Context Panel → Numeric Format, for example:

  • Percent
  • 2 decimal places

the preview in the math container changes accordingly (e.g. showing something like 0.45), but the actual numerical output below still displays as

0.4663461539

Changing the number format, decimal places, scientific notation, etc. seems to have no effect on the displayed output.

Even if not using  evalf.

Is this the expected behavior in Maple 2026?

  • Does Numeric Formatting only apply to certain types of expressions or math containers?
  • Is there a known issue with formatting numerical output generated by evalf?
  • Am I missing a setting that enables formatting of worksheet output?

I have attached a screenshot illustrating the problem.

Any help or clarification would be appreciated.

Thanks!

I have a very large system of nonlinear equations in Maple 2025, and the solver takes hours. Any Suggestions?

After starting Maple

I then tried simpler prompts like "Hello", simplify(x),...

For all prompts I get the same error message.
I am not a frequent AI user but this is the first time I see that.
Has anybody else experienced the same?

Can someone send me a prompt that should work?

(Model type was Simple.)

Update:

It seems that this error occurs, when a second instance of Maple 2026.1 is started and AI is consulted in this instance. 

I'm having a strange problem in Maple 2026. When I highlight a fraction to get Maple to display it as a percentage, it leaves the fraction unchanged. Is this a problem that others have encountered as well? And what can be done about it?

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