Changeset 2283 in Sophya for trunk/SophyaLib/NTools/integ.h


Ignore:
Timestamp:
Nov 29, 2002, 3:03:45 PM (23 years ago)
Author:
plaszczy
Message:

ajout de classfunc et changements dans integ pour que ca colle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/integ.h

    r1371 r2283  
    1010#include "pexceptions.h"
    1111#include <set>
     12#include "classfunc.h"
    1213
    1314namespace SOPHYA {
     
    1718class Integrator {
    1819public:
    19   typedef double(*FUNC)(double);
     20  //typedef double(*FUNC)(double);
     21  typedef ClassFunc *FUNC;
     22  typedef double (*fun)(double);
    2023
    2124  Integrator();
    2225  Integrator(FUNC, double xmin, double xmax);
    2326  Integrator(FUNC);
     27
     28  Integrator(fun, double xmin, double xmax);
     29  Integrator(fun);
     30
    2431  Integrator(GeneralFunction*, double* par, double xmin, double xmax);
    2532  Integrator(GeneralFunction*, double* par);
     
    6067  TrpzInteg(FUNC, double xmin, double xmax);
    6168  TrpzInteg(FUNC);
     69  TrpzInteg(fun, double xmin, double xmax);
     70  TrpzInteg(fun);
    6271  TrpzInteg(GeneralFunction*, double* par, double xmin, double xmax);
    6372  TrpzInteg(GeneralFunction*, double* par);
     
    7382  GLInteg(FUNC, double xmin, double xmax);
    7483  GLInteg(FUNC);
     84  GLInteg(fun, double xmin, double xmax);
     85  GLInteg(fun);
    7586  GLInteg(GeneralFunction*, double* par, double xmin, double xmax);
    7687  GLInteg(GeneralFunction*, double* par);
Note: See TracChangeset for help on using the changeset viewer.