MaplePrimes Questions

Search Questions:

Latest Questions Latest Questions Feed

GAMMA and gamma...

October 17 2014 Aakanksha 15

Hello everyone.

need to know what is the difference between use of GAMMA and gamma in maple.



I call the MeijerG function in the matlab: MeijerG([[-.3], []], [[.8, 1.3, -.8, -.3, -1.3], []], 1.), and it return an error as follows:

Error, (in evalf/MeijerG) the function is not defined: corresponding GAMMA poles must not coincide.

But when I change the first parameter from -0.3 to -1.3, I can get the result.

So, can you help to explain it? how can I fixed it?


I need to make two graphs.  1st take the equation y= ln3x+3 and graph it and it's derivative.  Then find the equation of the tangent line and the normal line to the given function at x=e   Then I need to create a single graph containing the function, the tangent line, and it's normal line.  Any pointers or help would be greatly appreciated.  I can graph the equation and it's derivative ok but I don't know how to make a graph with multiple stuff on it.  Thanks

Hi there,

I was trying to simulate the behaviour of a one-variable, discrete-time function having three parameters.

The function reads


defined for b, theta, m > 0

Say I want to simulate the function for the following values

b := [seq(1 .. 10, 1)];
theta := [seq(1 .. 5, 1)];
m := [seq(1 .. 2, 1)];

for n from 1 to 10.


I guess I need to build a 4-dimension array. But I was not able to find the right way to do this: should I use the Array strucutre? and if yes, how would I do it? As far as I've read, indexing would be an issue: should I create special indexing functions?

If I'm not wrong Maple matrices (Matrix) are just 2D.


Once the values of M computed, I would like to generate the corresponding plots, varying one parameter while the other two are fixed, and drawing the different M's in the same plot.

How can I achieve this?

Furthermore, if I would like to generate all possible combinations, I guess I would need to insert the solution given to the above question within a for loop. Will Maple display all plots or will it overlap/overwrite the preceding plot if used within a loop?





I have coded up a vector that is of my interest. The code runs witout any problem and gives me exactly what I want.

All I want to know, is that if there are more efficient way to do so?

Any tricks, or better use of a particular function that I wasn't aware?

The only tiny bit of unsatisfactory is that, the (1-w) term is at the first term of the addition, is that possible to move it to the last term? Which is more conventional to read.





Hi guys


I have an if statement inside a function. This function then get's called in a sum. However, the result is not correct as the if statement checks wether the argument equals 0, but since the sum passes only the summation index name, it doesn't work as intended.

How can I tell Maple, that it has to evaluate the index before passing it on? MWE appended.




Comm := proc (n) options operator, arrow; `if`(n = 0, 1, 0) end proc;

proc (n) options operator, arrow; `if`(n = 0, 1, 0) end proc





sum(Comm(j), j = 0 .. 0);






In Maple, I want to define a set of functions by means of two for loops:


    # Node coordinates.

    # Partition of unity.
    for j from 2 by 1 to N_x-1 do
        for k from 2 by 1 to N_y-1 do

However, this gives output in which the `[j,k]` vary but the `x_n[j-1]`, `x_n[j+1]`, `y_n[j-1]` and `y_n[j+1]` are not evaluated. But if I for instance input `x_n[3]` I correctly get 1/2 as answer.

How do I solve this?

I got a problem in using dsolve.
In my real question, some functions are quite complicated.
so here is a simple example.
#tf is the point where x(tf)=30.

above command can't give an answer.

how to use dsolve solve this problem?

any ideas is appreciated.

Hi all

Can anybody suggest an algorithm allowing to detect, that two matrices of the same size can be obtained each from other by permutations of rows and columns? Maybe, such an algorithm there exists in LinearAlgebra package?

Hello Dears

I have this equation

                                          (Napla)^4 * F(x,y) + k^2 *  (Napla)^2 * F(x,y)= 0,      (1)

which may be written as a non-homgeneous Helmholtz equation as

                                          (Napla)^2 * F(x,y) + k^2 * F(x,y)= g(x,y),                (2)

where the function g(x,y) is a harmonic function and (Napla)^2 is the laplace's operator in two dimension.

Can Maple solve equation (1), it will be better. If not may be solve equation (2).


I have an integral that maple can not solve but I can solve it by hand. How can I add this to maple integration database?


Please see the file below.


Many many thanks! :)


How can I substitute a function in a matrix? This is what I tried but it's not working at all:

T := GenerateMatrix([lign1, lign2, lign3, lign4],[x, y, z], augmented);

Then I'd like to substitute another function with lign1:

T2:=subs(lign1=lign5, T);

But T2 = T and that wasn't really the point.


Sorry if the answer is obvious no amount of searching has helped me so far. I hope this question isn't too ridiculous.


kappa := Vector(7, [1,w[1]*(1-phi+phi*(1-1/(1+exp(-mu[p]-tau[p3]))))+(1-w[1])*

Download kappa.txt

Here is the expression, I am trying to simplify, given a set of rules.

I have tried different substitutions, using simplify with side rules, applyrule, eval, subs, algsubs.

But none seem to be working as the way I want them to be.


Is there a better way?



I am trying the following:

Setup(mathematicalnotation = true);
Setup(op = A);

type(A^n, Physics:-`^`(PhysicsType:-ExtendedQuantumOperator, integer));
type(A^n, PhysicsType:-ExtendedQuantumOperator^integer);

the result is


However, I expected to get true in both cases. How to construct correct type for A^n?
Thank you.

1) Consider the followin Integral:


How can I tell maple to give the results in terms of hyperbolic and harmonic funtions?
The maple returns the answer in term of exponentials with imaginary powers.
Also, I could not use the "simplify" command to turn the answer returned by maple into an answer in terms of what I want! Please see the code below.

2) Is there a way that I can update the maple integration database manaully?

1 2 3 4 5 6 7 Last Page 3 of 1065