# Polyfit — A package for polynomial fitting

## Description

Abstract Polynomials P(x) of arbitrary degree are fitted with or without constraints, to a given set of points (X_n , Y_n ), n = 1,...,N; N > 1, using the least squares method. A weight ω_nmay be assigned to each point and/or an error - or fluctuation - ΔY_nto the respective Y_n 's. Two kinds of constraints may be specified: 1) Fixed subset of the polynomial's coefficients and 2) P(ξ_q ) = η_q , q = 1,...,Q, Q > 0 for given points (ξ_q , η_q ), q = 1,...,Q. The problem is reduced to a system of li... Title of program: POLYFIT Catalogue Id: ABFP_v1_0 Nature of problem Fitting a polynomial to a given data set is a problem appearing in most branches of experimental and theoretical physics. Versions of this program held in the CPC repository in Mendeley Data ABFP_v1_0; POLYFIT; 10.1016/0010-4655(89)90117-3 This program has been imported from the CPC Program Library held at Queen's University Belfast (1969-2019)