/* tsolvtd.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.) * ------------------------------------------------------------------------ */ /* Test: solvtd Uses: matprt Input file: std.dat */ #include "ccmath.h" void main(int na,char **av) { int i,n; FILE *fp; double *p,*a,*b,*c,*x; if(na!=2){ printf("para: input_file\n"); exit(-1);} fp=fopen(*++av,"r"); fscanf(fp,"%d",&n); a=(double *)calloc(4*n,sizeof(double)); b=a+n; c=b+n; x=c+n; for(i=0,p=a; i