tomleslie

6985 Reputation

17 Badges

10 years, 257 days

MaplePrimes Activity


These are questions asked by tomleslie

My OS is Windows 7 64-bit

I can't install the Physics Updates package in Maple 2020.1 and I'm looking for suggestions from anyone who has managed to do this, particularly on the above OS

Detailed timeline Nad what I have tried so far

  1. A couple of days ago I upgraded to Maple 2020.1
  2. I immediately started getting random warnings in Maple worksheets, which essentially stated that the installed Physics package (version 707) was designed for MAple 2020.0 and needed to be updated. However when I checked for \Physics updates none were available.
  3. So far, not a big problem, I figured the a Physics Update appropriate for Maple 2020.1would become available over the next few days
  4. Today I noticed that Physics Updates version 708 was available, and I made the rash(?) assumption that this would be the version I need for use with Maple 2020.1, so I tried to install it
  5. Using the icon in the top right of the the Maple worksheet in the usual way, I tried to install this update. The relevant pop-up finishes the download process, statrts the installlation process, gets about halfway through then stops along with another pop-up saying that mserver.exe has stopped working. Since the installation process was getting nowhere, I shut down Maple.
  6. Restarting Maple, and executing Physics:-Version(), I get the output `The "Physics Updates" version "708" is installed but is not active. The active version of Physics is within the library C:\\Program Files\\Maple 2020\\lib\\maple.mla, created 2020, March 5, 1:36 hours`. So maybe it did install? No, the "default location" for this package (which on my system is C:\Users\TomLeslie\maple\toolbox) contains a 'Physics Updates' folder, but the only thing in it is a 'version.txt file, which (amongst other things) contains the line cloud-version: 708.
  7. Normallly this 'Physics Updates' folder should contain a 'lib' subfolder, which in turn contains the file 'Physics Updates.maple' - but none of these exist, so I'm not convinced by the statement in (6) above that `The "Physics Updates" version "708" is installed
  8. At this stage I go into debug mode, and amognst other things, I have tried
    1. Repeat the process in (5)-(7) above - same result (including the mserver.exe crash)
    2. Delete the default installation folder C:\Users\TomLeslie\maple\toolbox\Physics Updates, and repeat the process in (5)-(7) above - same result (including the mserver.exe crash)
    3. Try 8.1 and 8.2 above running as administrator - same result
    4. Figure that maybe I have totally screwed my Maple 2020 installation, so reinstalled it, reactivated it, and updated it to 2020.1
    5. Repeated steps 8.1 to 8.3 above with exactly the same result
  9. Decide I am getting nowhere, so delete the folder C:\Users\TomLeslie\maple\toolbox\Physics Updates. The command Physics:-Version(); now returns `The "Physics Updates" package is not installed` so I assume I'm running on the Physics version which actually ships with the Maple 2020 release
  10. All suggestion for getting Physics updates running with Maple 2020.1 on 64-bit Windows 7 will be gratefully received

It would seem that if a package is loaded at the "top-level" via with() and the worksheet also has a procedure definition which contains a 'uses' statement for the same package (OK, admittedly a bit redundant), the commands from the relevant package actually "go missing".

See the output from test4() in the attached.

I can't believe that this is deliberate, because when trying to 'compartmentalise' code, then a 'uses' statement in a procedure seems like a good idea. To have this fail because the "top-level" worksheet contains a with() statement loading the same package seems perverse.

Please don't post workarounds - I already know several ways to do achieve it. I'm trying to find out if this behaviour is "deliberate" or a "bug". If the latter, it has been around for a long time because I have checked all the way back to Maple 18: every version exhibits the same behaviour

  restart:

  kernelopts(version);
  test1:= proc(M::Matrix)
               uses LinearAlgebra:
               return MatrixInverse(M):
          end proc:
  test2:= proc(M::Matrix)
               return LinearAlgebra:-MatrixInverse(M):
          end proc:
  with(LinearAlgebra):
  test3:= proc(M::Matrix)
               return MatrixInverse(M):
          end proc:
  test4:= proc(M::Matrix)
               uses LinearAlgebra:
               return MatrixInverse(M):
          end proc:
  test1( Matrix( [[1,2],[3,4]]));
  test2( Matrix( [[1,2],[3,4]]));
  test3( Matrix( [[1,2],[3,4]]));
  test4( Matrix( [[1,2],[3,4]]));

`Maple 2020.0, X86 64 WINDOWS, Mar 4 2020, Build ID 1455132`

 

Matrix(2, 2, {(1, 1) = -2, (1, 2) = 1, (2, 1) = 3/2, (2, 2) = -1/2})

 

Matrix(2, 2, {(1, 1) = -2, (1, 2) = 1, (2, 1) = 3/2, (2, 2) = -1/2})

 

Matrix(2, 2, {(1, 1) = -2, (1, 2) = 1, (2, 1) = 3/2, (2, 2) = -1/2})

 

MatrixInverse(Matrix(%id = 18446744074373391174))

(1)

 

Download usewith.mw

  1. The member() function doesn't find the value in a table if that value is associated with the key (aka index)  '0'
  2. Doesn't seem to matter if the table is created explicitly (ie by calling table()) or implicitly (ie by simple indexed assignment)
  3. member() doesn't seem to have the same issue with a zero-based Array()
  4. I'm pretty sure that this is a bug, but I'd like some opinions before I report it
  5. This behaviour has been around for a while: same thing happens all the way back to Maple 18. (I can't check anything earlier)

Check the ouput of member(10,t1) in the attached

  restart:

  interface(version);

`Standard Worksheet Interface, Maple 2019.1, Windows 7, May 21 2019 Build ID 1399874`

(1)

#
# Explicit table creation: same thing
# happens if table is created "implicitly"
#
  t1:=table([0=10, 1=12]);
  member(10,t1);
  member(12,t1);

table( [( 0 ) = 10, ( 1 ) = 12 ] )

 

false

 

true

(2)

#
# Zero-based Array
#
  A:=Array(0..1, [10, 12]);
  member(10,A);
  member(12,A);

Array(%id = 18446744074528920750)

 

true

 

true

(3)

 

Download memberProp.mw

Generally when I respond to questions on this site, I make sure that I tick the checkbox requesting that I get an email when updates are made to the thread.

I've just realised that I have been receiving no such updates for a week or so. Two possibilities

  1. Problem with Mapleprimes website, meaning that email updates aren't being generated/sent
  2. Problem with my ISP

Before I try investigating (2) above, I'd just like to know if anyone else has seen any issue which might be explained by (1) above

If I create  and save a worksheet in Maple 2019, then try to up load it here, it uploads but contents won't display

No issue if I have an "identical" worksheet in Maple 2018.

See the attachment attempts below

#### Result of trying to upload Maple 2019 file here


Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/fibon2019.mw .
 

Download fibon2019.mw

But "same" file from Maple 2018 "works"

#
# Recursive Fibonacci generator
#
  myFib:= proc(n::integer)
               option remember;
               if   n=1
               then return 1
               elif n=0
               then return 0
               else return myFib(n-1)+myFib(n-2):
               fi:
          end proc:

  seq(myFib(j), j=0..20);

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765

(1)

 


 

Download fibon2018.mw

1 2 3 4 Page 1 of 4