Solving Meijer G function!!

Can anyone solve the following Meijer-G function in matlab for any numerical value of z, k, Q1 and Q2?
Thanks in advance for your help

 Accepted Answer

Walter Roberson
Walter Roberson on 23 Nov 2015

9 Comments

Can you pls tell me, how can I put the above arguments in the provided fuction? For example, Z, Q1, Q2,k also G(2,1; 1,3)
No, your image is too small for me to read the notation clearly.
What I appear to see there does not correspond to any calling form of Meijer G that I have seen listed, but it could be that when I see a larger version of the image that there will be operators made clear. In particular the part after the bar appears at the moment to read
1
k,k,0
and that is not a form I find documented
Here, G means Meijer G function.
It looks like you have the order used by Mathematica, which reverses the sides of the bar compared to everyone else.
MG = sym( 'meijerG([[1],[]],[[k,k],[0]],z/(Q1*Q2))' );
and now you should be able to subs() particular values of k and z and Q1 and Q2 into MG, and do numeric calculations with vpa() or double()
kader
kader on 26 Nov 2015
Edited: kader on 26 Nov 2015
Dear Walter Roberson,
I am really grateful to you. Please help me one more time. Can you please try to get the numerical value of G function for the following values of k, z and Q1 and Q2;using symbol in G function. K=1; Q1=1; Q2=0.001 Z=0.002; How can I get the numerical value of sym( 'meijerG([[1],[]],[[k,k],[0]],z/(Q1*Q2))' ); Such as: 0.998 ; . By putting numerical value directly I get the numerical value of G function.
syms k Q1 Q2 z
MG = sym( 'meijerG([[1],[]],[[k,k],[0]],z/(Q1*Q2))' );
Then try
double( subs(MG, {k, Q1, Q2, z}, {1, 1, 0.001, 0.002}) )
Starting R2017b, meijerG is available in MATLAB. See https://www.mathworks.com/help/symbolic/meijerg.html .
can anyone explain,how those vectors 2,1,1,3 have used?
For
The a (top) vector is of length p. So for the top vector is of total length 1.
The b (bottom) vector is of length q. So for the bottom vector is of total length 3
In the overall computation of the function, the first m elements of the b (bottom) vector are used in the numerator in the form "element minus s" (s is the variable of integration). So for the first two elements of the b (bottom) vector are used in that form, leaving = 3-2 = 1 element of b unused for that particular purpose.
In the overall computation of the function, the first n elements of the a (top) vector are used in the numerator in the form "s + 1 minus element" (s is the variable of integration). So for the first 1 element of the a (top) vector are used in that form, leaving =1-1 = 0 elements of a unused for that particular purpose.
In the overall computation of the function, the remaining elements of b are used in the denominator in the form "s + 1 minus element" (s is the variable of integration). So for then 3-2 = 1 element of b is used that way.
In the overall computation of the function, the remaining elements of aare used in the denoninator in the form "element minus s" (s is the variable of integration). So for it would be 1-1 = 0 elements of a that are used that way.
MATLAB's meijerg() function uses the syntax . In this case A corresponds to the first n elements of the top vector of the notation, and the value n is implied as length(A). B corresponds to the remaining elements of the top vector of the G notation, and the value p is implied as length(A)+length(B) . C corresponds the the first m elements of the bottom vector of the G notation, and the value m is implied as length(C ) . D corresponds to the remaining elements of the bottom vector of the G notation, and the value q is implied as length(C )+length(D)

Sign in to comment.

More Answers (2)

paul Santi
paul Santi on 17 Sep 2020
Edited: paul Santi on 17 Sep 2020
How do I calculate the Meijer G function using matlab ( | |x|^2) where the first row vector is $(1/2-a , -a)$ and the second row is $(0 , -1/2)$ where $a>0$ and less than $1/2$ and $|x|>1.$

1 Comment

meijerG([0.5-a], [-a], [0], -0.5], ((abs(x))^2)

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!