Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Cephes/remes/   (Cephes Mathematical Library ©)  Datei vom 12.5.2026 mit Größe 1 kB image not shown  

Quelle  remesw.c

  Sprache: C
 

/* remesw.c */

/* Write answers to disc file. */

#include <stdio.h>
#include "remes.h"

void remesw()
{
char s[40];
int i;
FILE *f, *fopen();
double log10();

reopn:

printf( "Log file name ? " );
gets(s);
f = fopen( s, "w" );
if( f == 0 )
 {
 printf( "Can't open %s\n", s );
 goto reopn;
 }

fprintf( f, "\n%s  ", funnam );
if( config & CW )
 fprintf( f, "x + x**2 * " );
if( config & XPX )
 fprintf( f, "z  " );
if( config & X2PX )
 fprintf( f, "z**2  " );
if( config & PXCU )
 fprintf( f, "P(z**3)" );
else if( config & PXSQ )
 fprintf( f, "P(z**2)" );
else
 fprintf( f, "P(z)" );
if( d > 0 )
 {
 if( config & PXCU )
  fprintf( f, "/Q(z**2)" );
 else if( config & PXSQ )
  fprintf( f, "/Q(z**2)" );
 else
  fprintf( f, "/Q(z)" );
 }
fprintf( f, "\nz(x) = %s\n", znam );
if( relerr )
 fprintf( f, "Relative error\n" );
else
 fprintf( f, "Absolute error\n" );

fprintf( f, "n = %d, d = %d\n", n, d );
fprintf( f, "precision = %23.15E  ", -log10(farther) );
fprintf( f, "error=%23.15E\n", farther );
fprintf( f, "leveled=%23.4E\n", spread );
fprintf( f, "\nNumerator:\n" );
for( i=0; i<n+d+1; i++ )
 {
 if( i == n+1 )
  fprintf( f, "\nDenominator\n" );
 fprintf( f, "%23.15E\n", param[i] );
 }

if( d > 0 )
 fprintf( f, "%23.15E\n"1.0 );

if( (d > 0) || ((config & ZER) != 0) )
 {
 fprintf( f, "\n Locations of zero error:\n" );
 for( i=0; i<=n+d; i++ )
  fprintf( f, "%23.15E\n", xx[i] );
 }

fprintf( f, "\n Locations of peak error:\n" );
for( i=0; i<=n+d+1; i++ )
 fprintf( f, "%23.15E\n", mm[i] );
fclose(f);
}

Messung V0.5 in Prozent
C=98 H=70 G=85

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-14) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.