- #1
strokebow
- 123
- 0
Hi guys,
Please can someone look at this working (see attached).
The equation in question is [43]. It is highlighted with a red border.
The numerical answers in the pdf are correct and have been verified against published material.
That being said, I believe there must be a problem with equation [43] as I am not getting the same answers. I don't know how the algebra was simplified etc. to get to [43].
I have inputted [43] as it is in MATLAB and get incorrect results:
Example:
There are 2 possibilities:
1) I made a mistake in my MATLAB function, or,
2) There is a mistake/typo in [43]
If anyone can offer any help with this I would be really appreciative.
Thanks
Please can someone look at this working (see attached).
The equation in question is [43]. It is highlighted with a red border.
The numerical answers in the pdf are correct and have been verified against published material.
That being said, I believe there must be a problem with equation [43] as I am not getting the same answers. I don't know how the algebra was simplified etc. to get to [43].
I have inputted [43] as it is in MATLAB and get incorrect results:
Code:
function [y] = inf_res_hex_odd(x,y,m,n)
y = ((1)/(4*(pi^2)))*((3-2*cos(y).*cos(m*x+n*y)-cos((m-1)*x+n*y))./(4-cos(y).*(cos(y)+cos(x))));
end
Example:
>> real((quad2d(@(x,y)inf_res_hex_odd(x,y,1,0),-pi,pi,-pi,pi)))
ans =
0.5422
There are 2 possibilities:
1) I made a mistake in my MATLAB function, or,
2) There is a mistake/typo in [43]
If anyone can offer any help with this I would be really appreciative.
Thanks