nm

11413 Reputation

20 Badges

13 years, 72 days

MaplePrimes Activity


These are replies submitted by nm

@tomleslie 

Thanks for checking.

On "OP suggests issue might be a Windows 10 update??"

No,  I said the above about why I do not install Physics package using the cloud instead of manual download. 

Not related to the error message I get from Maple running the code. I was answering the other reply asking me to try to install Physics package again. May be I should have been more clear.

But I am glad someone other than me is able to produce this error message.

 

@itsme 

THank you for the suggestion. I tried all these things before. It does not work. This is a known long standing problem.  I am not the only one who seen this

https://www.mapleprimes.com/questions/226651-Why-Still-Not-Able-To-Install-Physics

It might be related to windows 10 professional change in some latest update and due to changing some file permissions.

 

There is nothing wrong with how I install the physics package. It is something I've been doing the same steps for a year now. I download the physics package itself and put in

Then edit maple.ini in lib folder:

 

and add the line

libname := "C:\\Maple_updates\\maple_2019\\Physics_Updates_348.maple", libname:

I am following the instruction thanks to Edgardo S. Cheb-Terrab as given in bottom of this post

https://www.mapleprimes.com/questions/226154-Installing-Packages-From-The-Cloud-Hangs

So I am sure I am using Physics package 348. That what Version() says.

As to why I get this error on my Maple, I have no idea. But will be happy to try any suggestion in order to find out why.

 

 

 

 

 

@ecterrab 

 

Thank you for checking. But it does not work for me. I am also using Physics 348 and Maple 2019 on windows 10.

I downloaded version 348 yesterday and followed same steps I always do to use new version. So I do not know why it works for you and not for me. 

If there is something else you like me to check please let me know.

I can't install Maple packages using the CLOUD interface directly, due to a bug somewhere. Maple server crash each time I try, and have to manually download the physics package and then adjust maple.ini to point to new version. This is what I been doing for more than a year now due to this bug in the cloud/windows issue.


 

restart

Physics:-Version()[2]

`2019, April 23, 20:40 hours, version in the MapleCloud: 348, version installed in this computer: 348.`

interface(version);

`Standard Worksheet Interface, Maple 2019.0, Windows 10, March 9 2019 Build ID 1384062`

unassign(r, u, t)

pde := diff(u(r, t), t) = (diff(r*u(r, t), `$`(r, 2)))/r

diff(u(r, t), t) = (2*(diff(u(r, t), r))+r*(diff(diff(u(r, t), r), r)))/r

ic := u(r, 0) = 1; bc := u(1, t) = 0

u(r, 0) = 1

u(1, t) = 0

`assuming`([pdsolve([pde, ic, bc], u(r, t))], [t > 0])

u(r, t) = (-invlaplace(sinh(s^(1/2)*r)/(sinh(s^(1/2))*s), s, t)+r)/r

Note r = [0]

`assuming`([pdsolve([pde, ic, bc], u(r, t), HINT = boundedseries(r = [0]))], [t > 0])

Error, (in assuming) when calling 'ln'. Received: 'when calling 'ln'. Received: 'numeric exception: division by zero''

It works with r = 0 but the flow goes through a different path

`assuming`([pdsolve([pde, ic, bc], u(r, t), HINT = boundedseries(r = 0))], [t > 0])

Error, (in assuming) when calling 'ln'. Received: 'when calling 'ln'. Received: 'numeric exception: division by zero''

I will adjust the syntx r = 0 to map into r = [0].

``


 

Download it_does_not_work_for_me.mw

@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.

 

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