nm

11353 Reputation

20 Badges

13 years, 12 days

MaplePrimes Activity


These are replies submitted by nm

@alexsid 

I'll try to upgrade nvidia driver and see if this fixes this. I have to find how to do that. My windows 10 is all up-to-date.

But the question is, why is it only Maple that have its window content disappear like this?

I have many other windows apps open and none of them have this issue. But none of those other apps use Java for the front end (which is a good thing they do not. Java is horrible for GUI).

I do not know if it is related to Java or not, but that is the main difference I see now.

@sand15 

nice touch with the change to 

`#mo("ℤ")`

This makes it look nice in Latex.

@Preben Alsholm 

thanks. This works better. But it overlooked some case Where it keeps _Z as is and not change it to Z like the others. Your code is supposed to change all "_Znnnn~" to "Z" right? not to "_Z" ? Here is an example where "_Z" remained as "_Z"

restart;
S4:=singular(1/(cos(x)*sin(x)*Psi(1/x)),x);
#S4:=singular(1/(cos(x))+Psi(1/x),x); 
#S4:=singular(1/cos(x),x); 
idts:=indets([S4],`local`);
S:=convert~(idts,string);
idts;

resZ,resNoZ:=selectremove(s->evalb(s[2]="Z"),S);
resN,resNoN:=selectremove(s->evalb(s[2]="N"),resNoZ);
resNN,resNoNN:=selectremove(s->evalb(s[2..3]="NN"),resN);
numZ:=numelems(resZ);
numNN:=numelems(resNN);
numN:=numelems(resNoNN);
`union`(idts[1..numN]=~N,idts[numN+1..numNN]=~NN,idts[numN+numNN+1..numZ+numNN]=~Z) ;
assign(%);
S4;

The input is 

Notice that last _Z has no ~ after it, like all the others,. May that is why it was not changed by your code. Here is the output of your code

But this is not a big deal. Just thought to mention it. Will test your code more on other examples. I do not know what Maple does not have a ~ after that last Z like with all the other ones.

@Preben Alsholm 

Ah! But now your new code does not work any more on a little different example. I think it is because you hardcoded [-2..1] in there for the specific example we were talking about? 

restart;

#S4:=singular(1/(cos(x)*sin(x))+Psi(1/x),x);
S4:=singular(1/(cos(x))+Psi(1/x),x);  #try on this one
idts:=indets([S4],`local`);

idts[1]=~NN;

assign(%);

idts;

idts[-2..-1]=~Z; # Don't use _Z

assign(%);

idts;

S4;

For the above we see it changes

To

So the problem is still there. 

I think a StringTools:-RegSubs might be the easier way to do this, i.e. convert each output to string (we only need RHS) and make a regular expression which changes  _Z*anything* to _Z and also change _N*anything* to _N.  

My regular expression skill is a little rusty, but will try to see if I ca do it later on.

Btw, your example above will work if I change idts[-2..-1]=~Z;  to idts[-1..-1]=~Z;  

If you could automate this part, then I think it will work.  I can't hardcode [-2..1] ofcourse, it has to be something decided at run-time.

This is not an easy problem, all becuase Maple likes to change _Z on its own for some reason instead of using just one _Z

@Preben Alsholm 

I was also looking at StringTools:-RegSubs to do this. But I tried your code. But it seems to change _N to _Z?

I am just now interested in single example, The union part I can always do at the very end, so it is not important. I tried your code on this

S4:=singular(1/(cos(x)*sin(x))+Psi(1/x),x);

Which gives

So it should have changed _Z2 to _Z and changed _Z1 to _Z, which is does. But why it changed _NN to _Z also? DId I not use your code correctly?

restart;



S4:=singular(1/(cos(x)*sin(x))+Psi(1/x),x);
idts:=indets([S4],`local`);
idts=~NN;
assign(%);
idts;
idts=~Z; # Don't use _Z
assign(%);
idts;
S4

try with timelimit

@C_R 

Any other mserver.exe corresponds to the tabs as you open files in Maple.

But how to know which mserver.exe is connected to which worksheet?? That is the whole point of this question. I can have 10 worksheets open at once. Also many times there could be an mserver.exe  in separate places in the task manager. I've seen mserver.exe sitting on its own outside the main group of mservers.  This method of counting is not practical.

@mmcdara 

Thanks but that is too complicated for me to even follow. All what Maple needs to do is display the server.exe process ID at the bottom of the worksheet (in the bottom bar).

Should I make separate post in the product suggestion for this? This is actually one of the most annoying thing for me, because that I have no idea which mserver.exe to terminate (since Maple hangs many times for me and I need to do this few times during the day), and I end up killing the wrong mserver.exe)

@minoush82 

But (2*x)' or (x^n)' are simply wrong math notation for what you mean.

One can write y' or z' to imply diff(y(x),x) or diff(z(x),x) but not  (2*x)' to mean diff(2*x,x)

This will be most confusing to your students. Nerver seen it used anywhere.

The tick notation is used only on a single variable (i.e. function name). Not on a whole expression.

So writing  (x*sin(x)+cos(x))' is simply wrong math notation.  But one can write first  y=x*sin(x)+cos(x) and after that y'. It will be OK now.

@minoush82 

This seems to be a problem due to encoding of the output of ShowSolution not working in command line vs. worksheet. It has nothing to with Latex. Here is screen shot of the output of just the ShowSolution command without calling Latex. Notice the bad characters showing up. This is on windows

 

So when you pass this output to Latex it complains as it can't parse it. Latex itself works fine on normal Maple commands:

 

 

It looks like ShowSolution output is meant to only be used/displayed in worksheet, and they do not play nice with standard output on the terminal for some reason.

 

with(Student[Calculus1]):
res:=ShowSolution(Diff(ln(x),x)):

lprint(res)
Typesetting:-mtable(Typesetting:-mtr(Typesetting:-mtd(Typesetting:-mtext("",
"mathcolor" = "black")),Typesetting:-mtd(),Typesetting:-mtd(Typesetting:-mrow(
Typesetting:-mtext("Differentiation Steps","mathcolor" = "black")))),
Typesetting:-mtr(Typesetting:-mtd(),Typesetting:-mtd(),Typesetting:-mtd(
Typesetting:-mrow(Typesetting:-mrow(Typesetting:-mfrac(Typesetting:-mstyle(
Typesetting:-mo("ⅆ",Typesetting:-msemantics = "inert")),
Typesetting:-mrow(Typesetting:-mstyle(Typesetting:-mo("ⅆ",
Typesetting:-msemantics = "inert")),Typesetting:-mi("x"))),Typesetting:-mspace(
width = "0.4em"),Typesetting:-mrow(Typesetting:-mi("ln",fontstyle = "normal"),
Typesetting:-mo("⁡"),Typesetting:-mfenced(Typesetting:-mi("x"))))
))),Typesetting:-mtr(Typesetting:-mtd(Typesetting:-mtext("▫","mathcolor" = 
"black")),Typesetting:-mtd(),Typesetting:-mtd(Typesetting:-mrow(Typesetting:-
mrow(Typesetting:-mtext("1. Apply the","mathcolor" = "black"),Typesetting:-
mspace(" "," ",width = "thickmathspace"),Typesetting:-mstyle(Typesetting:-mtext
("natural logarithm","mathcolor" = "black"),"fontweight" = "bold","mathcolor" =
"black"),Typesetting:-mspace(" "," ",width = "thickmathspace"),Typesetting:-
mtext("rule","mathcolor" = "black"))))),Typesetting:-mtr(Typesetting:-mtd(),
Typesetting:-mtd(Typesetting:-mtext("◦","mathcolor" = "black")),Typesetting:-
mtd(Typesetting:-mrow(Typesetting:-mrow(Typesetting:-mtext(
"Recall the definition of the","mathcolor" = "black"),Typesetting:-mspace(" ",
" ",width = "thickmathspace"),Typesetting:-mstyle(Typesetting:-mtext(
"natural logarithm","mathcolor" = "black"),"fontweight" = "bold","mathcolor" =
"black"),Typesetting:-mspace(" "," ",width = "thickmathspace"),Typesetting:-
mtext("rule","mathcolor" = "black"))))),Typesetting:-mtr(Typesetting:-mtd(),
Typesetting:-mtd(),Typesetting:-mtd(Typesetting:-mrow(Typesetting:-mrow(
Typesetting:-mrow(Typesetting:-mfrac(Typesetting:-mstyle(Typesetting:-mo(
"ⅆ",Typesetting:-msemantics = "inert")),Typesetting:-mrow(
Typesetting:-mstyle(Typesetting:-mo("ⅆ",Typesetting:-msemantics =
"inert")),Typesetting:-mi("x"))),Typesetting:-mspace(width = "0.4em"),
Typesetting:-mrow(Typesetting:-mi("ln",fontstyle = "normal"),Typesetting:-mo(
"⁡"),Typesetting:-mfenced(Typesetting:-mi("x")))),Typesetting:-mo
("="),Typesetting:-mfrac(Typesetting:-mn("1"),Typesetting:-mi("x")))))),
Typesetting:-mtr(Typesetting:-mtd(Typesetting:-mtext("","mathcolor" = "black"))
,Typesetting:-mtd(),Typesetting:-mtd(Typesetting:-mrow(Typesetting:-mtext(
"This gives:","mathcolor" = "black")))),Typesetting:-mtr(Typesetting:-mtd(),
Typesetting:-mtd(),Typesetting:-mtd(Typesetting:-mrow(Typesetting:-mfrac(
Typesetting:-mn("1"),Typesetting:-mi("x"))))),columnalign = "left")


 

may be changing some settings will make it work in command line. I do not know.  It looks like it is this character which causes the problems

\textrm{▫}

when displayed in standard output

@acer 

thanks for confirming. Send email to Maplesoft support.

Strange that it stops printing those leaked internal info messages after the second or third call to int()

@acer 

Have you submitted a bug report?

I've send email to support@maplesoft.com

@Anthrazit 

I am not talking about the Maple installation itself - just the networktools which are installed on the server.

Sure, I understood that. But since this is also a Maple product, it will have the same thing. i.e. It should come with its own JRE. I do not have this myself installed on my PC, since I have no need for it. I only use Maple itself.

But if you look at your installation of this on your PC/server where you installed it, it should have a JRE folder there somewhere below the top Maple folder where it was installed. If not, then this is a problem I would say. But again, I never used Maple's networktool. 

I was just giving a side remark about you not seeing any changes to the problem you are having when you installed a JDK outside of Maple, and all what I wanted to say is that this is what is expected to happen.

There was no Java installed on the (virtual) server, so I installed the latest OpenJDK to check if that solved the problem.

I thought Maple uses its own JRE (Java runtime environment) (notice, only the JRE is needed, not the whole JDK).  i.e. when one installs Maple, it comes bundled with the JRE it needs. At least I hope it does, otherwise this will cause lots of problem for the installer to assume that Java is installed on the user PC and it happened to be the same version supported.  

All application I know who use Java do this. They come with their own version of Java JRE.

My point is that, if you install JDK yourself outside of Maple, this should not make any difference to Maple, as it will still use its own internal Java that came with it. On window this is installed in C:\Program Files\Maple 2023\jre

What is JRE: (from the net)

"The Java Runtime Environment (JRE) is software that Java programs require to run correctly. Java is a computer language that powers many current web and mobile applications. The JRE is the underlying technology that communicates between the Java program and the operating system."

@Carl Love 

interesting. Actually now that you have mentioned it, I also seem to have noticed this more recently also. I remember 2 weeks ago having this same problem, and also made a video of it and posted it, but when Maple waked up again right after that, I delete it and thought to myself may be it was just a radom event.

I wonder now if this could be caused by a change at Maplesoft website itself? 

My understanding is that Maple communicates with the Maplesite occasionally when the PC is connected to the internet? May be to validate the licence? Is this true? If so, may be something changed in this procedure to cause this occasional freezing.

Last update I made to maple was 2022.2 and nothing else after that (other than updating the Physics package every few days, but I have no reason at all to think the Physics package will have anything to do with this).

I also wonder if Maple updates its JAVA run-time that it uses behind the scene automatically when the user opens Maple and is connected to the internet without asking the user permission. I do not think so, but I know for example that Mathematica sometimes does some minor updates behind the scene when one is connected to the internet (but I think that applies to documenation only).  I wonder now if Maple does something similar which might explain why these pauses seem to show up more recently.

We need a software detective to jump in and help find out the cause of this.

First 25 26 27 28 29 30 31 Last Page 27 of 91