Re: [Scilab-users] Bernoulli numbers calculation

2021-12-30 Thread Samuel Gougeon
Hello Lester, Le 30/12/2021 à 08:59, Lester Anderson a écrit : Hello Samuel, Thanks for the solution. As pointed out it is best to show the equation being assessed (from www.bernoulli.org ). The one I looked at was the following: Explicit_formula.PNG Using

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-30 Thread Lester Anderson
Hello Samuel, Thanks for the solution. As pointed out it is best to show the equation being assessed (from www.bernoulli.org). The one I looked at was the following: [image: Explicit_formula.PNG] Using nchoosek in the original code gives the same issue. Lester On Wed, 29 Dec 2021 at 22:46,

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Samuel Gougeon
Hello Lester, Le 29/12/2021 à 09:00, Lester Anderson a écrit : Hello, A quick query. Have adapted existing Matlab code for Scilan to calculate Bernoulli numbers using an explicit formula (www.bernoulli.org ). Not so explicit. Could you please provide the formula,

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Dang Ngoc Chan, Christophe
Hello Lester, > De : Lester Anderson > Envoyé : mercredi 29 décembre 2021 09:00 > > Have adapted existing Matlab code for Scilan to calculate Bernoulli > numbers using an explicit formula [...] 11 onwards the values are incorrect: I don't know what you already investigated but did you consider

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Dang Ngoc Chan, Christophe
Hello, Concerning my former message, it seems that binomial() is no longer documented (although it works). There is the function nchoosek() that is documented, with a diagram showing the overflow limit: https://help.scilab.org/docs/6.1.1/en_US/nchoosek.html regards -- Christophe Dang Ngoc

Re: [Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Dang Ngoc Chan, Christophe
Sorry for the spam, I'd better collect all the information before posting ^_^ To be clear: The function binomial() is for the binomial distribution. The binomial coefficient is obtained with nchoosek(). Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This

[Scilab-users] Bernoulli numbers calculation

2021-12-29 Thread Lester Anderson
Hello, A quick query. Have adapted existing Matlab code for Scilan to calculate Bernoulli numbers using an explicit formula (www.bernoulli.org). The code works fine for numbers from 0 to 10, but 11 onwards the values are incorrect: Not the most efficient code but do need to understand where the