news:npkt0v$g00$1...@newscl01ah.mathworks.com...
*snip*
> Hello Mr. Nasser
>
> The above paper used Wolfram mathematica to write that function and that
> is why the notation is a bit different.
> Anyway this is the expression closest to what I could write in mupad
> interface for the above Meijers G function -
>
> sum(meijerG([[],[-1-n,-n]], [[0],[-1-n,-1-n]],(k-1)/v), n=0..infinity)
>
> (K - 1)/v is an array of values which will be plugged into the above
> expression.
>
> However its a bit different from the equation in paper. What is the
> mistake I am doing?
Sometimes mathematical papers or books or different mathematical software
packages use different conventions for special function inputs and
formulations. For example in MATLAB the Bessel function of the first kind,
BESSELJ, accepts the order of the Bessel function as the first input
argument and the argument at which you want to evaluate the Bessel function
as the second input.
http://www.mathworks.com/help/matlab/ref/besselj.html
On the other hand, Microsoft Excel's version of that function requires the
argument as the first input and the order as the second.
https://support.office.com/en-us/article/BESSELJ-function-839cb181-48de-408b-9d80-bd02982d94f7
So if you blindly tried to evaluate J_2(1) in both MATLAB [as besselj(1, 2)]
and Microsoft Excel [as =BESSELJ(1, 2)] you would receive very different
results. But the answer you received from MATLAB for besselj(1, 2) should
agree with the answer you receive if you ask Excel to compute =BESSELJ(2,
1).
Make sure you're comparing apples to apples with respect to the order and
meaning of the inputs to meijerG. If after doing so you're still seeing
significant differences, please simplify your code down to a small number
(5-10 at most) lines of code that demonstrate the difference between
MuPAD/MATLAB and Mathematica and send that code to Technical Support for
investigation.
--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com