How to realize Riemann Siegel Theta Function with MATLAB?

조회 수: 5 (최근 30일)
yifei wang
yifei wang 2020년 6월 1일
댓글: 兰花 西 2020년 8월 24일
How to realize Riemann Siegel Theta Function with MATLAB?

채택된 답변

John D'Errico
John D'Errico 2020년 6월 1일
편집: John D'Errico 2020년 6월 2일
You start by writing the formula for it. That can be found on virtually the first line in this link.
However in MATLAB, the gamma function seems to be defined only for a real variable, unless you use the symbolic toolbox version of gamma. So this should work:
t = (1:5)';
[t,angle(double(gamma(sym(1/4 + i*t/2)))) - log(pi)/2*t]
ans =
1 -1.76754795281229
2 -2.52591091881613
3 -2.99456469601083
4 -3.29063503121648
5 -3.45962037536346
That is valid for real arguments t. I'd need to do some reading to know if this works for complex arguments, though I assume it does not, since the wiki link I gave indicates it is valid for real arguments. Hopefully you care only about real arguments, and are uninterested in an extension to the complex plane.
  댓글 수: 4
yifei wang
yifei wang 2020년 6월 2일
I got it. You are a great help. Thank you.
兰花 西
兰花 西 2020년 8월 24일
Excuse me, when I set the parameter to a relatively large imaginary number(-1.93097838020833 + 38142819340462.3 i) in the above formula, I cannot get a valid result. Do you know how to solve it? Thank you !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by