Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hi everybody,

I am trying to convert a String from a Maplet Texttfield into a polynom to use it.
Unfortunately it is not as easy as predicted. Can anybody help me with my problem?

I allready tried this, but it did not work:

polyString := "alpha";
poly := convert(polyString, poly);

Thanks a lot.


I'm trying to orthonormalize the set of basis vectors of the form form p(x)*exp(-x^2/2), where p(x) is a polynomial of degree less than N.

The basis I'm using for this function space is |e1> = exp(-x^2/2), |e2> = x*exp(-x^2/2), |e3> = x^2 * exp(-x^2/2), and so on.


However the GramSchmidt procedure in the LinearAlgebra package only accepts vectors.

Can someone help me to get around this, and use some procedure to orthonormalize the first four bases for this function space?

I'm using an old maple worksheet (Maple V) and some of the commands are now not valid (well actually most probably aren't).

Specifically numbers(string) and Digitize.  Numbers()  has gone to something like length() but I'm not sure about Digitize. 

Would be nice if you could look these up in a command update page that lists all the commands that are valid for what versions and what they translate to in the newer versions.  Be much easier than trying to trudge through and track down the history changes.


Dear all, I'm trying to solve a difficult metric in maple. I did the following: restart; with(tensor): coords:=[t, r, theta,phi]: g:=array(symmetric,sparse,1..4,1..4): g[1,1]:=1+mu*a(r); g[2,2]:=-(1+mu*b(r)): g[3,3]:=-r^2*(1+mu*b(r)): g[4,4]:=-r^2*(sin(theta))^2*(1+mu*b(r)): g[4,1]:=mu*omega*f(r)*r^2*sin(theta)^2*(1+mu*b(r))/c: metric:=create([-1,-1], eval(g)); tensorsGR(coords,metric,contra_metric,det_met, C1, C2, Rm, Rc, R, G, C): display_allGR (coords,metric,contra_metric, det_met, C1, C2, Rm, Rc, R, G, C);

Hi,  assume i have a list


My (to the core reduced) problem is:
I want to write a procedure that generates  the sequence containing the listname  together with its elements:


my try:

 end proc;

This doesn't work (illegal use of a formal parameter).

What to do ?





want to solve this equation for t  but getting 'Solutions may be lost' error.

eq3 := exp(-1/k*t)*k/(1+k^2)+(-cos(t)*k+sin(t))/(1+k^2);

solve(eq3=0, t);

Solutions maybe lost.

Is this too much for the symbolic engine? Does anyone know of a technique to solve this type of equation?


Does anyone here know of any Maple code (public, or in the Maple Library, or on, etc) that implements alpha-beta pruning?

I would like to see some examples of how this can be implemented and used in Maple, and possibly learn from it.

How to export worksheet to the HTML format programmatically? And how to export Maple output as GIF or other graphic format programmatically?

How do I find for which t is the following equation true?


I went to a particular website where I downloaded Maple programs in .txt files.

If I open the files and cut and paste the .txt into a Maple worksheet,

a > is inserted at the start of every line. It would take forever to delete each of these

>'s from the start of each line in a program with 500 lines.  Someone suggested that I put the command

read C:\\filename.txt

into my Maple worksheet. But, this - and many variations, with and without single quotes, file extensions, etc. - does not work.

Any suggestions?

I changed my code to multi-threaded type. but my run time increased! and my CPU usage became 65-70%.I think I made a mistake in programming.
but i have a different question too. I read a paper that said: "when you use a matrix or array instead of single integer in maple, your run time will be badly increase, because your total CPU usage will decrease! i't a result of delay in writing matrix element in ram and as CPU has no command to process and is waiting for data from RAM"
i want to know if it is correct or not.

Hello everyone! First, I have to say, that I am very new to Maple, so excuse my silly questions and please explain carefully ;-) I have a very simple problem: I'd like to solve a linear system, but it doesn't work. It's quite large, i.e. so large, that I did not try to use it by hand and thought: let my computer do it! Here are the two possibilities that I tried: 1. with(LinearAlgebra);

I want to add some information to an existing help page within maple.  Can I do it?


Concrete example: Suppose I have two (2 x 2) matrices that have entries as operators or other non-commutative object.

In the following example Maple treats the entries like numbers:





How can I ensure that these are not commuted like ordinary numbers?

The second part of the question, is how I can also prevent arbitrary application of associativity if I so choose.

So, after many years in the making, version 1.0 of wine is released.

Can anyone say, whether it'll run Maple 12?


First 1875 1876 1877 1878 1879 1880 1881 Last Page 1877 of 2071