Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hello,

I work in maple  2017,but the "interface "command seems doesn't work. But it works in the old version(maple 18). Does anyone know what problem with it?

The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. Originally founded by Neil Sloane in 1964, OEIS has evolved into a larger community based project that today contains information records on over 280,000 sequences. Each record contains information on the leading terms of the sequence, keywords, mathematical motivations, literature links, and more - there’s even Maple code to reproduce many of the sequences!

You can read more about the OEIS project on the main site, or on Wikipedia. There have also been several articles written about the OEIS project; here’s a (somewhat) recent article on Building a Searching Engine for Mathematics that gives a little more history on the project.

I wrote a simple package for Maple that can be used to search OEIS for a sequence of numbers or a string and retrieve information on various integer sequences. You can interact with the OEIS package using the commands: Get, Search or Print, or using the right-click context menu.

Here are some examples:

with(OEIS):

 

Search for a sequence of 6 or more numbers (note that you can also just right-click on an integer sequence to run the search):

Search(0, 1, 1, 2, 4, 9, 20);
    6 results found
             81, 255636, 35084, 58386, 5908, 14267

 

Retrieve information on the integer sequence A000081. By default, this returns the data as a JSON string and stores the results in a table:

results81 := Get(81):
indices(results81);
    ["revision"], ["number"], ["formula"], ["offset"], ["example"], ["keyword"], ["id"], ["xref"], ["data"], ["reference"], ["mathematica"], ["maple"], ["created"], ["comment"], ["references"], ["time"], ["link"], ["author"], ["program"], ["name"]

 

Entries in the table can be accessed as follows:

results81["author"];
    "_N. J. A. Sloane_"

 

I’ve also added some functionality for printing tables containing information on integer sequences. The Print command displays an embedded table containing all or selected output from records. For example, say we search for a sequence of numbers:

Search(0, 1, 1, 2, 4, 9, 20);
    6 results found
             81, 255636, 35084, 58386, 5908, 14267

 

Let’s print out selected details on the first three of these sequences (including Maple code if available):

Print([81, 255636, 35084], output = ["author", "name", "data", "maple"]);

 

The OEIS API is somewhat limited, so I have had to put some restrictions in place for returning results. Any query that returns more than 100 entries will return an error and a message to provide a more precise specification for the query. Also, in order to reduce the number of search results, the Search command requires at least 6 integers.

 

You can install the OEIS package directly from the MapleCloud or by running:

PackageTools:-Install(5693538177122304);

 

Comments and feedback are welcome here, or on the project page: https://github.com/dskoog/Maple-OEIS

restart; with(PDEtools);
U := diff_table(Psi(`ψ_2`, `ψ_1`));
pde := `ψ_2`*(diff(Psi(`ψ_2`, `ψ_1`), `ψ_1`))+`ψ_1`*U[`ψ_1`]+2*U[] = 0;
ψ_2 Psi(ψ_2 + 1, ψ_1)

   + ψ_1 Psi(ψ_2 + 1, ψ_1) + 2 Psi(ψ_2, ψ_1) = 

  0
pdsolve(pde);
Error, (in pdsolve/info) first argument is not a differential equation

How can i solve it?

My Maple worksheet is attached below - where I am solving two quantum mechanics problems, trying to find the eigenvalues for certain potentials.  Using a previous post in Mapleprime (https://www.mapleprimes.com/questions/221629-Can-Maple-Find-Solution-To-Eigenvalue),  I saw how to get the lowest eigenvalue.  My question is how using numeric solutions, I can get the higher eigenvalues and corresponding solutions.  Is there a way to specify that e (the eigenvalue) has to be in a certain range.  I tried to specify assumptions (e>0.6), but that didn't work.  I know that for the second problem (using the shooting method) that the 4 lowest eigenvalues are 0.184358, 0.70747, 1.2065, 1.5625.  Thank you very much for you consideration.

 

ODE_BVP_eigenvalues.mw

 

 

Why does solve not find the value of xp = sqrt(1-v^2) in this worksheet?

SpecialRelativity.mw

Reference: Special Relativity and Classical Field Theory. Authors: Leonard Susskind and Art Friedman

I think I've seen this somewhere in Mapleprimes but I can't locate it. How do you pull the type and number of operations from an equation? 

a:=3*x^3-5*x^2+3*y

                   " *,^,-,*,^,+,* "

 

If i have made a component invisible for asthetic reasons, (eg a text box) how can i undo this to edit its contents?

How can i export a plot using open maple in java?

engine.evaluate("Export(\"D:\\MyGraph.jpeg\", plot(sin(x)));");

and 

engine.evaluate("exportplot(\"D:\\MyGraph.jpeg\", plot(sin(x)));");

doesn't work,

exception - com.maplesoft.externalcall.MapleException: Error, (in Export) exported file D:MyGraph.jpeg could not be createdError, plotting was not implemented by the application

 

Thanks.

1. This seems wrong:

applyrule(x::symbol+y::symbol = 0, a+b);
                             a + b

2. Should these two match f(a)?

applyrule((h::anything)(a) = 0, f(a));
                              f(a)
applyrule(x::f(x1::anything) = 0, f(a));
                              f(a)

3. hypergeom will give an error if the arguments are not lists, so how to write a pattern that will match hypergeom(anything, anything, a)? This works but is... skittish:

applyrule('''hypergeom'''(x1::anything, x2::anything, a) = 0, hypergeom([], [], a));
                               0

How do i find the distance between the quasi cyclic codes in maple ?

how do i solve a system of PDE's with variable coeffiecients in Maple?

I have some elliptic curve with some points on it:

I would like to give the points some names, P, etc., but cannot figure out how to do that probably simple task. The help pages ?plot,options and ?pointplot do not seem to cover it; I may be mistaken, of course. The above plot is the result of the following code:

curve := y^2 = x^3 - 43*x + 166;
display([
   plot(+sqrt(rhs(curve)),x = -10..12),
   plot(-sqrt(rhs(curve)),x = -10..12),
   pointplot([[3,8],[-5,16],[11,32],[3,-8]],symbol = solidbox)
]);

Update: Using, among other things, the textplot command as suggested below, here, just for the fun of it, a plot illustrating the group 'addition' of points on an elliptic curve, the three lines being tangents to the curve:

I really need to factor minus one from -x-yI. I can do -[x+yI] and -{x+yI}. I cannot do -(x+yI).
Well, i really don't have these numbers exactly. They are produced within a Maple program.
I have something like ab, where a is the number x+yI. The little trick -`a`b will not work because
of the rather involved form of "a".
Thank you!

mapleatha

 

 

what package I need to add in order to use commands named "Drawmatrix, Translatemat and Transform" ? I add package named Lamp but it is not working. I have maple 15. Please try to respond as soon as possible because its urgent.

 

Thank you

First 898 899 900 901 902 903 904 Last Page 900 of 2224