/* $Id$
$State$
$Log$
+ Revision 1.362 2024/06/28 08:00:31 brouard
+ Summary: 0.99s6
+
+ * imach.c (Module): s6 errors with age*age (harmless).
+
Revision 1.361 2024/05/12 20:29:32 brouard
Summary: Version 0.99s5
/* printf("... after %u function calls ...\n", nf); */
/* printf("... including %u linear searches ...\n", nl); */
/* printf("%10d %10d%14.7g",nl, nf, fx); */
- printf ( "\n" );
+ /* printf ( "\n" ); */
printf ( " Linear searches %d", nl );
/* printf ( " Linear searches %d\n", nl ); */
/* printf ( " Function evaluations %d\n", nf ); */
/* printf ( " Function value FX = %g\n", fx ); */
printf ( " Function evaluations %d", nf );
printf ( " Function value FX = %.12lf\n", fx );
+ fprintf (ficlog, " Function evaluations %d", nf );
+ fprintf (ficlog, " Function value FX = %.12lf\n", fx );
#ifdef DEBUGPRAX
printf("n=%d prin=%d\n",n,prin);
#endif
- if(fx <= fmin) printf(" UNDEFINED "); else printf("%14.7g",log(fx-fmin));
+ /* if(fx <= fmin) printf(" UNDEFINED "); else printf("%14.7g",log(fx-fmin)); */
if ( n <= 4 || 2 < prin )
{
/* for(i=1;i<=n;i++)printf("%14.7g",x[i-1]); */
- for(i=1;i<=n;i++)printf("%14.7g",x[i]);
+ for(i=1;i<=n;i++){
+ printf("%14.7g",x[i]);
+ fprintf(ficlog,"%14.7g",x[i]);
+ }
/* r8vec_print ( n, x, " X:" ); */
}
printf("\n");
+ fprintf(ficlog,"\n");
}