/* plsq.c CCMATH mathematics library source code. * * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. * This code may be redistributed under the terms of the GNU library * public license (LGPL). ( See the lgpl.license file for details.) * ------------------------------------------------------------------------ */ #include #include "orpol.h" void plsq(double *x,double *y,int n,Opol *cf,double *ssq,int m) { double *pm,*e,*p,*q; double f,s,t,u,w,tp; int i,j,k,l; pm=(double *)calloc(3*n,sizeof(double)); for(i=0,w=u=0.,e=pm,p=e+n; i