TP Intégration Numérique
 All Files Functions
essai04.c File Reference

main programme sample number 04. More...

#include <math.h>
#include <string.h>
#include "mesh1D.h"
#include "quad.h"
#include "utils.h"

Go to the source code of this file.

Functions

void usage ()
 
double f (double x)
 
void GetMainParameters (int argc, char **argv, char **pFileName, int *pini, int *ppas, int *pfin)
 
void ComputeErrors (double(*pf)(double), double a, double b, double Exact, int nini, int pas, int nfin, double **ph, double **pError, int *n)
 
int main (int argc, char **argv)
 

Detailed Description

main programme sample number 04.

Author
F. Cuvelier
Version
0.1
Date
18th November 2013

Using of argc and argv for command-line arguments. Try commands :

./essai04 help
./essai04 
./essai04 test.out
./essai04 test.out 500 500 10000

For fun, configure MATLAB variable in makefile and run

make test04 

Definition in file essai04.c.