gordon the grey

5 Reputation

One Badge

10 years, 108 days

MaplePrimes Activity


These are replies submitted by gordon the grey

@acer 

Or rather I run a cmaple.exe window, type interface(prettyprint=0),it returs 1; type this again, surely it returs 0.  Then maitain this window and run another cmaple.exe window, type interface(prettyprint=0),it still returs 1. Hence this conmand is valid only in current session.

Now I type  maple('interface(prettyprint=0)') in a matlab session.

Great! It really works well !!!

thanks a lot, acer!

@acer 

I'm sorry that all of these changes  have no effect in any Matlab session.

@acer 

Thank you,acer!

Yes, I am working in Matlab with Maple as the engine for its Symbolic Toolbox, and I want results from Maple (invoked from within Matlab) to be printed in the Matlab interface as something which then cut&pastes as 1D Maple Notation input.

The problem is not solved. I type the scripe interface(prettyprint=0) in a maple sheet, it returns 0.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The command interface(prettyprint) in Maple help documents is described as follow:

The variable that controls the method used to render Maple expressions in the user interface.  Value 0 uses lprint; value 1 uses a two-dimensional, character-based formatter; and higher values use platform-specific rendering methods. In the worksheet interface, values of 2 and 3 use typeset math. Note: Subexpression labeling is on, by default, for prettyprint=2, and off, by default, for prettyprint=3. For historical reasons, prettyprint can also be set to the Boolean values true or false.

The Default value of prettyprint is:
3 (in Worksheet interface); 1 (in Command-line interface)

And in the help document "restart", it says, "restart" comand will reset the value of interface(prettyprint).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So I think when we close the Maple and run it again, the value of interface(prettyprint) will go back to it default value.

 

First,I set "Output display" in Tools-->Options-->Display as "2-D Math notation". I observed that when the command interface(prettyprint=0) was executed, the "out put display" options was changed to "Maple notation" at the same time. Then I close the Maple program and start it again the comand interface(prettyprint=0) retuens 3, and the "Output display" in Tools-->Options-->Display is still "2-D Math notation", just like the help document says. 

I guess  Matlab invoke Maple by Command-line interface, so I run "cmaple.exe" in the file menu "Maple 18\bin.X86_64_WINDOWS". When the comand interface(prettyprint=0) was executed here, it returns 1. I think I get it, but the problem is not sovled also.

This time I observed that when I closed the cmaple window and run it again, the interface(prettyprint=0) also returs the default value 1. How can I set it to 0 forever!

Page 1 of 1