Does logint function work well? (for PNT)
이전 댓글 표시
On the 'Prime Obsession' book, 20 to the power 1/2 + 14.134725i is −0.302303 − 4.46191i. Take the logarithmic integral—the Li function—of that to get the answer −0.105384 + 3.14749i.
I tried as belows, but failed.
>> a=20^(1/2+14.134725i)
a =
-0.3023 - 4.4619i % OK
>> logint(a)-logint(2)
ans =
0.9528 - 3.9138i % Wrong
댓글 수: 6
Notae
2018년 10월 13일
KALYAN ACHARJYA
2018년 10월 13일
Explain what are you looking for?
the cyclist
2018년 10월 13일
Li(x) = integral(1/log(t)) from 0 to x
not from x to 2 as you state. I don't have the symbolic math toolbox to test.
the cyclist
2018년 10월 14일
Li(20^(1/2+14.134725i)) - Li(2)
you get the answer
0.952805 - 3.91384i
which is what you say that MATLAB also gives. Therefore, I think the problem is not with MATLAB.
Maybe you could post more of what it says in the book you mention. Maybe there is some other part you are missing.
Notae
2018년 10월 15일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!