# do we have relation between LommelS2 and MeijerG in matlab?

2 views (last 30 days)
gourav pandey on 25 Jan 2021
Commented: Mubashara Wali on 5 Apr 2021
Do we have matlab relation between two special function "LommelS2 and MeijerG"?
How to convert LommelS2 code into MeijerG?

Walter Roberson on 25 Jan 2021
Edited: Walter Roberson on 26 Jan 2021
and scroll down to near the bottom to see the conversions.
Mubashara Wali on 5 Apr 2021
Thankyou

gourav pandey on 5 Apr 2021
Edited: gourav pandey on 5 Apr 2021
clc;
close;
clear all;
n=5;
h=@(omega1) 0;
for m= 0:1:n
mu1c = -(1./2).*n-(1./2).*m+3./2 ;
nu1c = (1./2).*n+(1./2).*m+1./2 ;
Lommels =@(omega1) meijerG([(1./2).*mu1c+1./2], [], [(1./2).*mu1c+1./2, (1./2).*nu1c, -(1./2).*nu1c], [], -(1./4).*omega1.^2).*2^mu1c./(2.*gamma(-(1./2).*mu1c+(1./2).*nu1c+1./2).*gamma(-(1./2).*mu1c-(1./2).*nu1c+1./2))
end
Lommels(1)
Lommels(10)
Lommels(99)
Lommels(100)
Lommels(500)
Lommels(1000)
%% Why m i getting sudden blow in value of 'Lommels' when omega1 veluse more than 120 or 150... it should decay as omega1 increase.
Walter Roberson on 5 Apr 2021
You are overwriting Lommels within the loop, so the final result will reflect only m == n

R2020b

### Community Treasure Hunt

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

Start Hunting!