Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Error, (in Compiler:-Setup) unable to write to initialization file, C:\Program Files\Maple 2020\bin.X86_64_WINDOWS/launch.ini, possibly due to insufficient permissions
NULL;

when choose bat file

but i see sufficient permission

any w should i s

choose a particular compiler or even visual studio i have in my system

 

where can i find if anything else

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

Hello guys I do not have a Code for you I'm sorry for that. Mybe you can help me with my Task its in German but I need to find out the (x;y) for my Saddle Point and also the local Maxima (x;y). I hope you can help me. 

Hi everyone:

How can I calculate these differentials? (a, b and R are constants). 

tnx...

I read the article "ONEOptimal: A Maple Package for Generating One-Dimensional Optimal System of Finite Dimensional Lie Algebra", and also searched out in Maplesoft website, but couldn't found. Does anyone have the package?

As I am playing with Maple object to understand it better, I found strange thing.

I have simple object with 2 methods. Both are exported so they could be called from outside.

One method is called set_name and this one is called OK (I have print inside to print it is called). The next exported method is called process and when calling this method, the print never shows up. Which means it is not called. Using the same exact call.

When changing the name from process to something else, say processX now the print show, meaning the method is now called.

Is there restriction on what one can call their object method? And why would there be ?

Here is an example

restart;
module car_class()
      option object;
      local name::string:=""; 

      export process::static := proc(o::car_class)
             print("process method");             
      end proc:   

      export set_name::static := proc(o::car_class,_name::string)
             print("inside set name"); 
             o:-name := _name:
      end proc:     
end module:

my_car:=Object(car_class):  #make object

set_name(my_car,"toyota"):
process(my_car):
set_name(my_car,"toyota"):

On the screen, it only shows 

Now I changed it to 

restart;
module car_class()
      option object;
      local name::string:=""; 

      export processX::static := proc(o::car_class)
             print("process method");             
      end proc:   

      export set_name::static := proc(o::car_class,_name::string)
             print("inside set name"); 
             o:-name := _name:
      end proc:     
end module:

my_car:=Object(car_class):
set_name(my_car,"toyota"):
processX(my_car):
set_name(my_car,"toyota"):

And now on the screen it shows OK

Is there a way a way to be able to freely choose what method names to give to the object method? clearly the name "process"  is something special for Maple here for some reason.

When I do ?process, I see that Maple has some commands that have this name. But this is a name of a method inside Object class, so it should not have anything to do with any Maple own command. 

This was never an issue with module() for an example.  If one has to worry about what name to give to their methods for an object, then this will be very awkward. For example, what if one calls their method FOO and future version of Maple introduce a new command called FOO now the code will no longer work.

 

 

I wanted to create an Array() to store only objects of specific type in it.  

Array() supports the datatype=value  telling it the type of elements to store. But when I try to create an Array() using datatype of the class, it fails. I must be doing something wrong. Here is an example

restart;
module solution_class()
      option object;
      local sol::anything;
end module;
sol:=Object(solution_class); #create an object

Now the following works:

A:=Array();
A(1):=sol;

But I wanted to do

A:=Array(datatype=solution_class);
A(1) := sol;

 Error, unable to store '0' when datatype=module solution_class () local sol::anything; option object; end module
 

Help says 

And this is the case here, because type(sol,solution_class)  gives true

So 'solution_class' is valid type name.

Where is my error?

 

 

Dear maple users,

Greetings.

Q1.How to plot a figure for different values of M?

      like M=1,2,3,4:

Code:Mplot.mw

Q2. How to assign all the expressions are "remember table assignment"

Hi:

what is the value of this expression(eq) in Maple:

eq:=(x+I*y)^2-4*exp(I*x*y)

tnx...

 

Hello,

I try import a big Excel file with the first row as column labels for performing statistical etc.

I use this command :

data := Import(FileTools:-JoinPath(["d:", "directory", "subset2.xlsx"], platform = "windows"))

i need a dataframe for performing statistical with column label as first row, but i have this error :

Error, (in Import) invalid input: MatrixToDataFrame uses a 3rd argument, columns, which is missing

I can not understand what is this error...so, what i can do ?

Thanks, regards

Trying to use Curl tutorial when doing vector calculus

when I enter F:=VectorField(⟨y,-x,0⟩); it tells me unknown operator.

Regards

 

 

with(VectorCalculus);
SetCoordinates('cartesian'[x, y, z]);
                       cartesian[x, y, z]

F:=VectorField(⟨y,-x,0⟩);

Error, unknown operator
Typesetting:-mambiguous(FAssignVectorFieldApplyFunction(acirc

  Typesetting:-mambiguous(?, 

  Typesetting:-merror("unknown operator"))umlycommauminus0xcomma0

  acirc?copy))


 

I am having problems with VectorCalculus[Norm] with argument passing.

In certain cases I get the error message:

     "Error, (in VectorCalculus:-GetCoordinates) the first argument, when present, must be a Vector"

In all cases, the first argument IS a vector.

Here is the case I need to succeed:

VectorCalculus[Norm](DeleteRow(Vector[column](5, [x, y, z, w, 1]), RowDimension(Vector[column](5, [x, y, z, w, 1]))))

or more completely:

here is the test Document with several cases of the problem explored:

Failure_on_Calculus_Verctor_Norm.mw

Background.  Calculus Vector Norm doesn't know about Homogenous systems so it inculdes an unwanted term in its norm.  Trimming off the last row of the vector fixes this problem.

(Note: as I am new, so if there is an existing cononical notation that will take care of that without further ado, then I could leave CalculusVector[Norm] to its own devices and move on.

Also, if I knew how to peek at the underside of such gotchas, I might have been able to sort it out myself.  Any leads in this direction would be taken to heart.  Thanks)

 I want to find AutomorphismGroup  of star S4 (ie, K1,3).

with(GraphTheory):
with(GroupTheory):
with(SpecialGraphs):
S4:=CompleteGraph(1,3);
G1 := AutomorphismGroup(S4); # out is GroupTheory:-PermutationGroup({module() ... end module,module() ... end module},degree=4)

 

 

the S_4 has six automorphisms: (1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2,), (3, 2, 1):

GraphAutomorphismStar

For the output of maple ,I cannot understand.

Maybe I don’t understand the group enough. May somebody explain in detail,  Thanks!

There is a whole chapter in programming guide on OO in Maple.

How much is OO actually used by Maple programmers? Is OO used much internally at Maplesoft itself in implementing internal code? I do not see questions about OO in Maple in the forum. May be it has not taken off? 

Any one knows of packages in Maple written in OO style, using the Object module? I think OO was added in Maple 16, which is 2012?

p.s. I myself like OO programming. Done alot of it in Java. I think it can be useful for large applications.

 

 

Hi I have product of function Q along with its derivative.  

Q'j(x)*Qi(x) for j=0,1 and i=0,...n.

how can i make loop  to collect all coefficeints for this function for j=0,1 and i=0,1,..n.

i hope some one will help me.

Thanks

First 413 414 415 416 417 418 419 Last Page 415 of 2097