nm

4680 Reputation

17 Badges

8 years, 131 days

MaplePrimes Activity


These are Posts that have been published by nm

I am testing Maple 2020.2 with new Latex with Physics version latest 879.

The latex generated now issues \! between the symbol and the () next to it to improve the spacing. This post is just to let anyone using the package mleftright in Latex, that this will cause a problem. So it is better to remove this package if you are allready using it.

Here is an example

eq:=y(x)=exp(x/2);
Latex(eq)

              y \! \left(x \right) = {\mathrm e}^{\frac{x}{2}}

In earlier version of Physics:-Latex (now it is just Latex), the above generated this

             y  \left(x \right) = {\mathrm e}^{\frac{x}{2}}

Notice, no \! in earlier version.

If you happen to be using \usepackage{mleftright} to improve the spacing for \left and \right, which I was using, you'll get negative side effect. A solution is to remove this package. Here is an example showing the above Latex compiled with this package added, and without it, so you can see the differerence.

\documentclass[12pt]{book}
\usepackage{amsmath} 
\usepackage{mleftright}
\mleftright
\begin{document}

With the package mleftright loaded

which gives using latest Latex V 879. Maple 2020.2
\[
  y \! \left(x \right) = {\mathrm e}^{\frac{x}{2}}
\]
            
And which gives using earlier Physics Latex. Using Maple 2020.1
\[
  y \left(x \right) = {\mathrm e}^{\frac{x}{2}}
\]
\end{document}

This is the output without using this package. by removing the inlcude command in the above Latex code and not calling mlfright. Now the problem is gone:

I like the effect added from \! , which is a manual way to improve the space, which this package was doing.

just be careful not to use mleftright package now, which is a somewhat popular package in latex and It was recommended to use sometime ago to improve the spacing, as it will over correct the spacing, and looks like not needed any more with latest Maple Latex.

 

 

What are the things you most like to see improved/add to next version of Maple? 

This is my list for a starter:

1.  Improve the debugger. Debugger is very useful but needs more work. At least be able to see code listing in larger view as one steps in for example. See Matlab debugger for inspiration.

2.  Improve Latex. It still does not do fractions well. Posted about this before.

3. Eliminate hangs when using timelimit(). On long runs, random hangs happen when timelimit() do not expire as requested. Posted about this before.

 

 

There are many questions that complain about Latex conversion in Maple.

I'd like to again request that Maplesoft improves Latex output of its expressions. If Maple can just fix how it generates fractions, that will good enough for now.

I am willing to send Maplesoft a personal check of the amount of one month salary for one of your developers to do this fix if you are willing to do it. It should not take more than one month to do this simple fix in your code. It might even take one day if someone knows the code.

The problem comes when there is a fraction in the expression. the Latex output instead of using proper latex code using "\frac{}{}", it instead uses "/" which makes the output terrible.

Another case, where Maple generate (expression)^{-1} instead of \frac{1}{expression}.

It can't be that hard to fix these 2 issues, which can go a long way towards making the latex generated by Maple much better. Here is an example

eq:=-(1/2)*1/y = (1/3)*x^3+z:
sol:=solve(eq,y);

latex(sol);
-3/2\, \left( {x}^{3}+3\,z \right) ^{-1}

Which renders as

Which is terrible. The screen output is much better.

Compare this to Mathematica

eq = -(1/2)*(1/y) == (1/3)*x^3 + z;
sol = y /. First@Solve[eq, y];
TeXForm[sol]

   -\frac{3}{2 \left(x^3+3 z\right)}

Which renders in Latex as

If Maplesoft does not think Latex is improtant, then they are completely wrong. CAS support in Latex is very important. Ignoring Latex means you will lose customers who want good Latex support of the math output of Maple. After all, Math and Latex go togother. And Maple is supposed to be all about Mathematics.

Any chance of Maplesoft taking some time to fix these issues in Latex? Maple has not had any improvement in Latex for years and years. I keep buying Maple each year, and nothing changes in its Latex export.

thank you

I like to use Maple debugger to help me debug and I am sure many do.

It is good that Maple comes with a debugger. I type "stopat(proc_name);" and then the debugger comes up when proc_name is called.

But the Maple debugger is hard to use. It appears to be primitive compared to other commerical debuggers that come with other known developments systems.

For example, the output of "enter a debugger command" is displayed back into the same screen where the code is listed. This makes hard to see. There is only one window. It is also hard to see where one is in the source code is. So I have to keep clicking on the "list" button to display the lines again and look for the small "*" on the left.

Basically, it is good to have the debugger, but it seems Maplesoft is not doing any improvements to make it easier to use. It is so 1980 looking compared to other easy and powerful to use debuggers, such as Matlab debugger, Visual studio, and others.

Could Maplesoft please make some improvements to the debugger? At least make separate side window for output of debugger commands, and improve the code listing issue? It will also be nice to have a call stack view, and variable view window, and to see where one is in the call chain.

Is this the only debugger available for Maple? 

I noticed Mapleprime have entries of users who clearly create an account just to put a bad website URL in there and they are just spam.

Why do not the moderators of Mapleprime purge these out? Mapleprime is full of these spam marketing users.   Here are just few I found in few clicks

http://www.mapleprimes.com/users/Frenettees8d
http://www.mapleprimes.com/users/Ingegneriaq7r
http://www.mapleprimes.com/users/Inabinetaq6s
http://www.mapleprimes.com/users/Bruggemanse5l
http://www.mapleprimes.com/users/vito5854
http://www.mapleprimes.com/users/deblogepa
http://www.mapleprimes.com/users/organicjunk80

There are hundereds of these spam URLS in there. They make an account, only to add their infected web site URL there so if someone clicks on it they get virus.

Moderators of mapleprime should do better job and remove these cleary spam entries from Mapleprime.

1 2 Page 1 of 2