segfault

145 Reputation

5 Badges

2 years, 207 days

MaplePrimes Activity


These are replies submitted by segfault

@acer 
Your advice is good, but I already use the standalone switch , and  can identifiy each java server with the document it is associated with. It seems however that it is a no-no to kill the mserver as my experience shows. I will do as you do and always kill the java vm for the document.

Do you know why Maple cannot manage to impliment a working interrupt/break functionality. I dont understand why we still have to have these difficult nd sometines non-operational break button. It works when you dont really need it, but utterly fails when you really need it.

@acer 
I did what you instructed above. I still  get e.g
Int(x*y,x);
Typesetting:-mprintslash([Int(x*y,x)],[Int(x*y,x)])

But, it refused to change anything if I appled it to current docuemnt only. The same line-printer crap appeared.  I then saved Globally and this time it reset and I have the output back operational again.

The reason for this corruption is due to the fact that I had to kill mserver process in order to get maple out of it's infinite loop. The red circled interrupt button absolutely does nothing if Maple decides to go haywaire in an endless calculation.  Killing mserver obviously corrupted the config for some reason as the problem appeared directly thereafter.

Maple should REALLY FIX their interrupt/break function. It just doesnt work properly and is a partially operational boondoggle.

How do youy suggest I get out of infinite loops as Maple's own interrupt functionality fails desperately.
Seemingly killing mserver is a no-no and I have no choice but to kill Java ? Or do you have another way ?

I did some more tests, and it seems the lineprinter issue manifests itself in two ways
1) If I open the worksheet with an earlier version of Maple, then I get the lineprineter rubbish output also, so it goes with the docuemnt.

2) If I open one of my default documents which are write protected so cannot be source of problem then it also gives me lineprinter with Maple24 but not with Maple22.

Therefore the problem follows Maple 24 -period, but only impacts Maple22 if the document was saved with Maple24.

What a mess a document crash makes.!!

 @acer 
This also failed to work for the reason that everytime I do CTRL J then it ends up with the usual font and color scheme and all the other nasties.

I will have to abandon CTRL J and cut and paste new execution groups for this to work, which is really lame.

@acer 
"You can also create an empty Worksheet that uses your custom Style Set, and then make that the default (unnamed) sheet that appears when you do File->New to open another. See the menubar item"

Sadly this seems to be the only option and I will have to follow your suggestion.

It is crazy that you cannot set a default font color and font in Maple. It seems it is stuck in the past.
The choice they mde after about Maple 11 regarding fonts and colors is just downright unreadable and irritating to me. 

Thank you very much for your suggestion. It seems to be the only way.

@Carl Love 
You are right. phi>0 is a typo, it must be sin(phi)>0. I had to cut paste, and added that incorrectly later twice! The original in my worksheet is sin(phi)>0.

For all other posters, please do not use assumtions on cos(phi). I never stated that that should be  the case.  All solutions which contains assume(cos(phi)>0 are irrelevant to this thread.

@acer 
It does not solve the  font selection and font color. I cant change those to a default I want to use.

assume(phi>0);
-sin(phi)^(13/4)*2^(3/4)*sqrt(cos(phi)^(5/2)*sqrt(2)/(sin(phi)*cos(phi))^(5/2))*a^2/(4*x^2) + sin(phi)^2/(2*x^2);
-sin(phi)^(13/4)*2^(3/4)*sqrt(cos(phi)^(5/2)*sqrt(2)/(sin(phi)*cos(phi))^(5/2))*a^2/(4*x^2) + sin(phi)^2/(2*x^2)

You have a jolly old time convincing Maple to simplify the obvious under the square root.



@nm 

I dont know which mathematical software package you use, but it would be great if Maple does that with such ease.

I run into really annoying things that just will not simplify.

Doing

assume(phi>0);
A:=-797250051*((-(1284505600*a^2*sin(phi)^(7/2))/797250051 + (1284505600*a^2*sin(phi)^(3/2))/265750017)*cos(phi)^(5/2) - (1284505600*a^2*sin(phi)^(3/2)*cos(phi)^(9/2))/265750017)*2^(1/4)*sqrt(cos(phi)^(5/2)/sin(2*phi)^(5/2))/(2569011200*sin(phi)^(1/4)*cos(phi)^(5/2)*x^2);

And then

simplify(A,symbolic):%-(a^2 * sin(phi)^2 * (1 - sin(phi)^(1/2))) / (2 * x^2);algsubs(sin(2*phi)=2*sin(phi)*cos(phi),%);expand(%);

Maple stubornly dont want to do the obvious and cancel out the factors in e.g. the first term. See attached image.

@mmcdara 
This seems to do exactly what I tried to achieve.
It will help me a lot with exotic coordinates.

@nm 

The problem with your solution is that cos(x) is expressed as sin(x+Pi/2).  See my original post where I state it needs to be

cos(x)=k*sqrt(1-sin(x)^2)  else it would not work.   ( k is a signum)

I can algsubs after every instruction  but it gets clunky and unworkable. It all needs to be done at least with one procedure.

@acer 
This is absolutely fantastic.   I will have to pick your brain at a later stage to figure out how you do the rest you mention.

I want to give you the trophy for your answers, you post comments and not answers so I cannot do it.

Your responses are highly appreciated.

Can you please repost your comment left at 11:48 AM  as an answer so I can award the trophy.

Thanks

@acer 

Thanks for the response.

It is installed in /opt

So according to you it is set in the CLI  maple executable !

I went to check and there it is.   

Nothing in xmaple though, but xmaple obviously uses maple as engine anyway.

The confusion with the manual/Faq/etc  came with the stupid $HOME variable in the instructions that is only valid if you do not do a system install, as to a Linux user that means a config file in your home directory which obviously does ot exist.

Thank you very much.

They should add instructions for default system install in /opt. Very confusing.

I tried to select your answer as the solution, but your post  has no trophy !

Last questions

1)

So what does the following in addition set
CUSTOMHEAP=0
JAVASTACK=4
STANDALONE=

Would be nice if I can launch concurrent Java engines, as currently opening more than two worksheets concurrently freezes over Maple most of the time. Just asking if standalone maybe issue instances of Java, rather thna to use the same engine for a multiple worksheets.

2)

With that settled where  do I find stacklimit ??

I need to know ho to optimize this for my hardware as I dont want to have these limit issues popping up after a few days into a computation.

@Rouben Rostamian  

I dont want to set this every time I run Maple. But if it is the only option, I will have to create a new Maple executable script to replace the existing so the command line switches are always used.

Following Install.html, none of the files they mention there for linux even exist after installation.

I always have to set stack and heap after installation else Maple loses connection with kernel and I get a popup error halfway through a long calculation. The defaults are so puny.

But, they seemingly changed the filenames where I can configure this in Maple2024.

It would be nice to get an exact filename where heap and stack can be adjusted.

@acer 
The first thing I tried was repeated %a  as in your second example and I could not get it to work.

I am baffled why it now works.

But you sure showed that it does work

Thanks.

1 2 3 4 5 6 Page 1 of 6