Code covered by the BSD License
-
[Zeros,Fzeros]=muller(fn,npre...
[Zeros,Fzeros]=muller(fn,nprev,maxit,ep1,ep2,fnreal,Zeros)
-
[rts,frts,rtsm,frtsm,func]=in...
[rts,frts,rtsm,frtsm,func]=interact(func,xlim,ylim)
-
f=zetac(x)
f=zetac(x) computes the Riemann zeta function
-
v=erfs(z,N)
v=erfs(z,N) evaluates the series expansion for the
-
v=fresnelc(z,N)
v=fresnelc(z,N) sums the Bessel series expansion of
-
v=fresnels(z,N)
v=fresnels(z,N) sums the Bessel series expansion of
-
v=gammac(z)
v=gammac(z) gives the gamma function for complex argument.
-
readme.m
-
runexamples.m
-
View all files
from
complexzeros
by Howard Wilson
Complex zeros of a function of z=x+i*y are computed using graphics and Muller's method.
|
| f=zetac(x)
|
function f=zetac(x)
% f=zetac(x) computes the Riemann zeta function
% for real or complex argument
% Riemann zeta function from dissertation of
% Professer Robert W. Scharstein.
% The function handles scalar or matrix arguments.
% RWS, 13 June 2005
if nargin==0
[u,v]=meshgrid(linspace(0,1,40),linspace(5,30,80));
x=u+i*v;
end
siz=size(x); x=x(:); M=20; q=1; n=0:M;
x2=x.*(x+1).*(x+2);
x4=x2.*(x+3).*(x+4);
x6=x4.*(x+5).*(x+6);
first=zeros(size(x)); nq=n+q;
for k=1:M+1; first=first+nq(k).^(-x); end
f=first+1./((x-1).*(M+q).^(x-1))-(1/2)./(M+q).^x...
+x./(12*(M+q).^(x+1))-x2./(720*(M+q).^(x+3))...
+x4./(30240*(M+q).^(x+5))-x6./(1209600*(M+q).^(x+7));
f=reshape(f,siz);
if nargin>0, return, end
surf(u,v,abs(f)),view([77,16]), xlabel('x -axis')
ylabel('y axis'), title('abs( zeta( x + i*y ) )');
f=[]; shg
|
|
Contact us at files@mathworks.com