Re: [Scilab-users] Polynomial fitting

2020-04-04 Thread Federico Miyara
Stéphane, Yeah, but really badly conditionned compared to the above method which is based on orthogonal tranformations (X=Q*R factorization). With your below method you solve a linear system with X'*X matrix which has a condition number which is the square of the condition number of the R

Re: [Scilab-users] Polynomial fitting

2020-04-02 Thread Clément David
; From: users On Behalf Of Stéphane Mottelet > Sent: Thursday, April 2, 2020 10:48 AM > To: users@lists.scilab.org > Subject: Re: [Scilab-users] Polynomial fitting > > Hello Frederico, > > > Le 02/04/2020 à 10:27, Federico Miyara a écrit : > > > > Dea

Re: [Scilab-users] Polynomial fitting

2020-04-02 Thread Stéphane Mottelet
Hello Frederico, Le 02/04/2020 à 10:27, Federico Miyara a écrit : Dear All, Trying to convert an old Matlab script to Scilab I miss the function polyfit, which computes the coefficients of a polynomial that fits x-y data using the least square method. I found the following thread