Riemann Siegel Theta Equation

3 ビュー (過去 30 日間)
bil
bil 2023 年 1 月 11 日
コメント済み: bil 2023 年 1 月 11 日
Hey all,
I wanted to know how I would solve an equation involving the Riemann Siegel theta function (https://en.wikipedia.org/wiki/Riemann%E2%80%93Siegel_theta_function). There is a post discussing its implementation in MATLAB here: (https://www.mathworks.com/matlabcentral/answers/539611-how-to-realize-riemann-siegel-theta-function-with-matlab) but my problem is that this implementation does not work if I tried to use vpasolve for an equation like where is our Riemann Siegel theta function and C is some aribtrary real number. I think there is an error involving using symbolic variables inside a double but I am unsure of how to resolve this.
Any advice would be appreciated!

採用された回答

Paul
Paul 2023 年 1 月 11 日
Hi bil,
Is this what you're looking for?
syms t real
theta(t) = angle(gamma(sym(1)/sym(4) +1i*t/2)) - log(sym(pi))/2*t
theta(t) = 
tsol = vpasolve(theta(t) == 2)
tsol = 
vpa(theta(tsol))
ans = 
2.0
  1 件のコメント
bil
bil 2023 年 1 月 11 日
Yes great, this is it!
Thanks so much.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by