Re: [Scilab-users] Reimann Zeta function
Hello Lester, > De : Lester Anderson > Envoyé : lundi 29 novembre 2021 09:39 > > I am interested in the Reimann Zeta function, but it does not appear as an > option directly with Scilab (v6.1.1). Not really an answer to your question, but I'd like to mention that the zeta function is implemented in the R pracma package. https://search.r-project.org/CRAN/refmans/pracma/html/zeta.html https://cran.r-project.org/web/packages/pracma/pracma.pdf It is also in the Python scipy package https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.zeta.html Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Reimann Zeta function
Thanks for the info. Sorry about the typo: Riemann! Now corrected. On Mon, 29 Nov 2021 at 19:35, Stéphane Mottelet wrote: > Hello, > > There is no implementation of the zeta function in Scilab. Beware of naive > ways to compute it. You can have a look to this page : > > http://numbers.computation.free.fr/Constants/Miscellaneous/zeta.html > > S. > > Le 29 nov. 2021 à 09:39, Lester Anderson a écrit : > > > Hello all, > > I am interested in the Reimann Zeta function, but it does not appear as an > option directly with Scilab (v6.1.1). > > Has anyone already prepared a function for this? > > Lester > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Reimann Zeta function
Hello, There is no implementation of the zeta function in Scilab. Beware of naive ways to compute it. You can have a look to this page : http://numbers.computation.free.fr/Constants/Miscellaneous/zeta.html S. > Le 29 nov. 2021 à 09:39, Lester Anderson a écrit : > > > Hello all, > > I am interested in the Reimann Zeta function, but it does not appear as an > option directly with Scilab (v6.1.1). > > Has anyone already prepared a function for this? > > Lester > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Reimann Zeta function
Hi Lester Please be reminded of the correct spelling : Riemann Cheers, Claus On 29-11-2021 18:23, Lester Anderson wrote: Hi all, Found a bit of Matlab/Octave code to solve the Reimann Zeta function for values >= 0, not perfect but it's a start. Need to figure out how to deal with negative values. Lester // Reimann Zeta function: valid for t >= 0 function f=F(x) f = 1./(gamma(t(j))).*x.^(t(j)-1)./(exp(x)-1); endfunction function [z]=zeta(t) global x z = zeros(size(t)); for j = 1:prod(size(t)) if(real(t(j)) >= 0) if(imag(t(j)) == 0 && real(t(j)) > 1) z(j) = intg(0,200,F) elseif(t(j) == 0) z(j) = -0.5; elseif(t(j) == 1) z(j) = %inf; else for k = 1:1:100 z(j) = (-1).^(k-1)./(k.^t(j)); end z(j) = 1./(1-2.^(1-t(j))).*z(j); end else z(j) = 2.^t(j).*%pi.^(t(j)-1).*sin(%pi.*t(j)./2).*gamma(1-t(j)).*zeta(1-t(j)); end end endfunction On Mon, 29 Nov 2021 at 08:51, Heinz Nabielek wrote: Riemann zeta function ! Georg Friedrich Bernhard Riemann (17 September 1826 – 20 July 1866) was a German mathematician who made contributions to analysis, number theory, and differential geometry. Heinz > On 29.11.2021, at 09:39, Lester Anderson wrote: > > Hello all, > > I am interested in the Reimann Zeta function, but it does not appear as an option directly with Scilab (v6.1.1). > > Has anyone already prepared a function for this? > > Lester > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Reimann Zeta function
Hi all, Found a bit of Matlab/Octave code to solve the Reimann Zeta function for values >= 0, not perfect but it's a start. Need to figure out how to deal with negative values. Lester // Reimann Zeta function: valid for t >= 0 function f=F(x) f = 1./(gamma(t(j))).*x.^(t(j)-1)./(exp(x)-1);endfunction function [z]=zeta(t) global x z = zeros(size(t)); for j = 1:prod(size(t)) if(real(t(j)) >= 0) if(imag(t(j)) == 0 && real(t(j)) > 1) z(j) = intg(0,200,F) elseif(t(j) == 0) z(j) = -0.5; elseif(t(j) == 1) z(j) = %inf; else for k = 1:1:100 z(j) = (-1).^(k-1)./(k.^t(j)); end z(j) = 1./(1-2.^(1-t(j))).*z(j); end else z(j) = 2.^t(j).*%pi.^(t(j)-1).*sin(%pi.*t(j)./2).*gamma(1-t(j)).*zeta(1-t(j)); endend endfunction On Mon, 29 Nov 2021 at 08:51, Heinz Nabielek wrote: > Riemann zeta function ! > > Georg Friedrich Bernhard Riemann (17 September 1826 – 20 July 1866) was a > German mathematician who made contributions to analysis, number theory, and > differential geometry. > > Heinz > > > > > On 29.11.2021, at 09:39, Lester Anderson wrote: > > > > Hello all, > > > > I am interested in the Reimann Zeta function, but it does not appear as > an option directly with Scilab (v6.1.1). > > > > Has anyone already prepared a function for this? > > > > Lester > > ___ > > users mailing list > > users@lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users