nm

11353 Reputation

20 Badges

13 years, 14 days

MaplePrimes Activity


These are replies submitted by nm

@acer 

But this can lead to many programming errors.

If a function expects A,B,C in that order, and if one of them happend to be empty/null, then the arguments get shifted without the caller knowing this.

Suppose the caller was getting the result "A" from  as return result from a call to another function, and they want to pass these arguments to another function (like I did) for more processing, then they have to check each time that each of the arguments they are passing along is not null before making the call.  And if it is null, what will they replace it with, so that the order of arguments does not get shuffled during the call?

I find this not a good design in Maple to tell you the truth. A null or () should be passed as it is and not be removed from the call. 

It might not be possible for Maple to do that, but that is another issue. I am just saying what should happen.

 

@Rouben Rostamian  

Thanks. THere is no such file in the Maple 2019 folder on windows 10. I searched for the file using windows search tool and it did not find anythere. I also searched the Maple 2018 folder, nothing there.

This seems to be for the mac only.

 

@itsme 

Thanks. I know about this option, but I am reading the string from database (sqlite).

@ecterrab 

 

Ok, I deleted the whole toolbox/2019  then started Maple and did Physics:-Version(333)

But to due to the issue of Maple not copying the .maple file to "toolbox\2019\Physics Updates" itself, due to some permission problem or something else with windows, I have no choice but to copy the .maple file manually over to "toolbox\2019\Physics Updates" from the temp download folder.

 

And the issue is still there after starting Maple. Nothing changed. That print out msg still shows.

But if it works for others, it is not a problem really for me as pdsolve still works fine and gives solution, so this msg showing has no effect on me.

Thank you

 

 

@ecterrab 

Thank you for the update.  But the issue is still there in 333:

I downloaded version 333 to the Physics Updated folder OK.

 

Restarted Maple, etc... The message still shows up. Also in the Int example you showed as well. Still there.

May be someone else could try it just in case.

 

@ecterrab 

On my system it always says  "version installed in this   computer: the "Physics Updates" is not installed" this is because I download the Physics package manually and put it in separate folder then update the maple.ini to point to it. So the file

C:\Program Files\Maple 2018\lib\maple.ini contains this line

         libname := "C:\\Maple_updates\\Physics_Updates_319.maple", libname:

This works, per your suggestion in this post  Installing-Packages-From-The-Cloud-Hangs

Since I am not able to install the Physics package using the cloud interface for some reason which I could not figure out why. But manual download works thanks to your suggestion. But a side effect of this, is that now Physics:-Version() says

Physics:-Version()
 "C:\Maple_updates\Physics_Updates_319.maple", 2019, March 3, 
    17:7 hours, version in the MapleCloud: 319, version installed in this 
    computer: the "Physics Updates" is not  installed.

But it is using version 319, which I downloaded to C:\Maple_updates\Physics_Updates_319.maple

 

 

@acer 

"What if you try and pass resource limits (time, data limit) for the kernel when you launch Maple?"

Sorry, but I have no idea what you mean by the above. How would one tell Maple to use some specific time limit on all calls to pdsolve at Launch time?

I have a loop when I run over some problems, and I want to set timelimit to each and obtain the time used for each.  I only want to set timelimit on the call to pdesolve. I do not want to set time limit for any other calls. It is like this

for N from 1 to 100 do
     #some other Maple code here that do not want to set timelimit on or measure its time
     #read pde
    cpu_time := timelimit(180,CodeTools[Usage](assign('sol',pdsolve(pde,w(x,y))),output='realtime'));
od;
     

What interface/client are you using? GUI? TTY/CLI?

Worksheet mode. Not CLI. I open Maple GUI, open new worksheet and run the code there. The problem is that if I do not set timelimit, some problems will hang. And if I set timelimit, some problems will still hang (but not all) as it depends on the amount of the timelimit set. 

I am not following exactly what you want. But may be this is what you want

 

      interface(showassumed=0);

@acer 

thanks for the answer.  

 are those Mathematica results valid everywhere?

I verified they are valid by differentiating back. So they are valid.

 

 

So based on the above, it seems no assumption should be needed?

Here is the resullt of the above in plain text Maple code converted from Mathematica to Maple. For int(sin(x)^k,x):

cos(x)*hypergeom([1/2, (1/2)*k+1/2], [(1/2)*k+3/2], sin(x)^2)*sin(x)^(k+1)/((k+1)*sqrt(cos(x)^2))

And for For int(cos(x)^k,x):

-cos(x)^(k+1)*hypergeom([1/2, (1/2)*k+1/2], [(1/2)*k+3/2], cos(x)^2)*sin(x)/((k+1)*sqrt(sin(x)^2))

 

But in Maple, when I tried to differentiate these back, it did not give the integrand. Even using simplify(). 

@vv 

 

"So, both results of pdetest(sol,pde)  (zero or not zero)  are correct; the problem is that this depends on the order of execution!"

Thanks for looking into it.

But I think it is a real bug, I never heared of a semi-bug before :) that a function will return different answer depending on the order it is called. It implies some internal coupling.

Even if 0 or not 0 are both correct answers (which also makes little sense to me, as the solution should be either valid or not valid but not both at the same time). For now, I will have to use restart before calling pdetest each time. But this means I can't use pdetest inside a loop or inside some other program I am using since I can't do restart in the middle.

 

 

 

 

@ecterrab 

thanks. Yes, I copied the PDE from your notebook.

I was at first surprised by the new syntax and that it worked, so I thought it is something new in Maple. 

@ecterrab 

 

Finally, suppose you have Maple working fine again. If the problem in your computer happens only when you use PackageTools:-Install, I can't imagine what could that be (support@maplesoft.com can) but I can suggest a workaround. In your maple.ini (in mac it is called .mapleinit) you can set the value of libname. Set it as in

libname := "the directory you prefer", libname:

Thank you, that worked!  Now I can use 265.

I downloaded Physics 265 and put in in 

 Directory of C:\Maple_updates

12/22/2018  10:41 AM        10,502,144 Physics+Updates.maple

Then created the file  C:\Program Files\Maple 2018\lib\maple.ini (had to force this file to be created, since folder was protected) and added the line

libname := "C:\\Maple_updates", libname:

there.

No started Maple, and now it says

restart;

Physics:-Version();

 "C:\Maple_updates\Physics+Updates.maple", 2018, December 22, 

    10:41 hours, version in the MapleCloud: 265, version 
    installed in this computer: not installed

And now the problems you posted in this post above work

So I will use this method from now on to update Phyiscs updates. something is wrong with PackageTool:-Install, mserver.exe always crashed when it is used.  I even tried it from command line

C:\Maple_updates>"C:\Program Files\Maple 2018\bin.X86_64_WINDOWS\cmaple.exe" t.mpl
    |\^/|     Maple 2018 (X86 64 WINDOWS)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2018
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.

> kernelopts(version);
                                                                      Maple 2018.2, X86 64 WINDOWS, Nov 16 2018, Build ID 1362973


> PackageTools:-Install("C:\\Maple_updates\\Physics+Updates.maple",overwrite);
maple: fatal error, lost connection to kernel

as you can see, mserver.exe always crashes. same error I posted before.

I have no idea why.  This explains why the GUI hangs. it sits there waiting for mserver.exe to respond but because it crashed, the GUI hangs.  (The GUI for installation should be made more robust, so that it detects connection is lost with mserver.exe and not hang also).

But Maple otherwise works OK. 

Thanks for all the help.

 

@Preben Alsholm 

 

It does not work for me. I am running windows 10 professional. Latest updates.

I uninstalled maple 2018. Rebooted the PC. Installed Maple 2018 again, then did update. So now I am running latest and greatest Maple.

Each time I do an package update from the cloud or by direct command, Maple MSERVER.EXE crashes

Faulting application name: mserver.exe, version: 0.0.0.0, time stamp: 0x5bee9873
Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 0x524f83ff
Exception code: 0xc0000005
Fault offset: 0x000000000005f3e7
Faulting process id: 0x19b0
Faulting application start time: 0x01d499c1e72d8dac
Faulting application path: C:\Program Files\Maple 2018\bin.X86_64_WINDOWS\mserver.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSVCR120.dll
Report Id: a4b63628-36d2-4a4a-9ef6-6f553703bd8f
Faulting package full name: 
Faulting package-relative application ID: 

when I try packagetools:-install.... same thing, MSERVER.EXE crashes. The examples posted above do not work for me for this reason

 

 

I have no idea what else to try.

My windows event log is full of MSERVER crashes.

 

Error	12/22/2018 12:45:48 AM	Application Error	1000	(100)
Error	12/21/2018 11:29:52 PM	Application Error	1000	(100)
Error	12/21/2018 10:50:40 PM	Application Error	1000	(100)
Error	12/21/2018 10:44:40 PM	Application Error	1000	(100)
Error	12/21/2018 10:28:07 PM	Application Error	1000	(100)
Error	12/20/2018 9:16:46 PM	Application Error	1000	(100)
Error	12/20/2018 8:37:09 PM	Application Error	1000	(100)
Error	12/20/2018 8:28:05 PM	Application Error	1000	(100)
Error	12/20/2018 8:23:45 PM	Application Error	1000	(100)

 

Those are all from Maple MSERVER.EXE. same exact crash. It happens each time I try to install package.

windows 10 professional. 64 GB. This problem started either after I did windows 10 latest updates it seems, or something in Maple 2018.2.1 that caused it, since I was able to do this before many times on same PC with no problem when I was running Maple 2018.2 not long ago. 

I have no firewall. This is a home PC.

I made no changes myself in the PC that will affect Maple itself.

 

@ecterrab 

Thank you again for the instructions. I followed them exactly.

cmaple crashes immediatly after the command  PackageTools:-Install("the full path of the file Physics+Updates.maple").  (btw, you had typo, you wrote .mla there.

The full path I used was correct. the cmaple windows went away right away. I looked at the event log and saw the crash with time stamp at the instance cmaple crashed.

Faulting application name: mserver.exe, version: 0.0.0.0, time stamp: 0x5bee9873
Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 0x524f83ff
Exception code: 0xc0000005
Fault offset: 0x000000000005f3e7
Faulting process id: 0x1d38
Faulting application start time: 0x01d498d498640810
Faulting application path: C:\Program Files\Maple 2018\bin.X86_64_WINDOWS\mserver.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSVCR120.dll
Report Id: 69c0deb5-e619-48ad-b67e-f317d2e617c8
Faulting package full name: 
Faulting package-relative application ID: 

 

There is something wrong somewhere. I will try to contact customer support may be they can help. May be windows 10 latest update changed something.

Thank you

@ecterrab 

Thank you for the updates. But V 264 also hanged during installation, so had to terminate it. Waited 10 minutes.

The strange thing is that when I do PackageTools:-Uninstall("Physics Updates"); followed by Physics:-Version() it says I have version 264?  Is not PackageTools:-Uninstall("Physics Updates"); supposed to actually remove the physics package?

Then when I type your code above, I get no solution. Because I assume Physics package is not there?

Then I tried to install another package from the cloud. Tried the ClusterAnalysis package. And this also hanged at the "installing...." stage. restarted Maple and tried yet another package. TextTools, and that also hanged !

Then looked in the windows 10 event viewer and see number of  critical errors from Maple:

Faulting application name: mserver.exe, version: 0.0.0.0, time stamp: 0x5bee9873
Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 0x524f83ff
Exception code: 0xc0000005
Fault offset: 0x000000000005f3e7
Faulting process id: 0x934
Faulting application start time: 0x01d498c574117d48
Faulting application path: C:\Program Files\Maple 2018\bin.X86_64_WINDOWS\mserver.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSVCR120.dll

 

The I closed Maple, started the command line Maple and typed

    |\^/|     Maple 2018 (X86 64 WINDOWS)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2018
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
> PackageTools:-Uninstall("Physics Updates");
Uninstall Physics Updates from directory C:\Users\me\maple\toolbox/2018/Physics Updates? (Y/N)
Y
                                                         true

> Physics:-Version();
"C:\Program Files\Maple 2018\lib\update.mla",

    2018, November 16, 2:40 hours, version in the MapleCloud: 264, version installed in this computer: 264


> PackageTools:-Install("5137472255164416", version = 264, overwrite);

Error, (in PackageTools:-Install) permission denied when trying to copy to C:\Users\me\maple\toolbox/2018/Physics Updates/lib/UpdatesPhysics2018.help

#notice the mixes "\" and "/" in the above directory name

#Ok, let me try again
> PackageTools:-Install("5137472255164416", version = 264, overwrite);

#Now it hangs. Nothing happens.

 

The download works OK, as I see the file here

 

But the problem comes from the installing phase.

It seems that installing from the cloud does not work. I have no idea why all packages hangs in "installing....". May be windows 10 latest updates broke something. I do not know.

If there is another manual way to try to install the Physics package from the file above? I will try it. 

First 64 65 66 67 68 69 70 Last Page 66 of 91