Re: [Scilab-users] partial fractions

2021-12-29 Thread Federico Miyara
Samuel, Thanks for the tip! Any possibility that partfrac() ever become part of Scilab? I think it should actually replace pfss(), since it seems to be exactly what a user expects from a partial fraction function. Regards, Federico Miyara On 29/12/2021 17:32, Samuel Gougeon wrote:

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] partial fractions

2021-12-29 Thread Samuel Gougeon
Hello Federico, Le 16/07/2021 à 21:11, Federico Miyara a écrit : Dear All, I'm wonderig whether there is a standard method to obtain the partial fraction expansion of a rational function. Searching, I've found the function pfss(), which purportedly is meant for that, but I find it doesn't

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