MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
ot_fonctions.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// ot_fonctions.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2025
19 //####// Derniere modification par francois
20 //####// mer 14 mai 2025 17:54:47 EDT
21 //####//------------------------------------------------------------
22 //####//------------------------------------------------------------
23 
24 #ifndef ot_fonctionsH
25 #define ot_fonctionsH
26 
27 
28 
29 #include <math.h>
30 #include "ot_doubleprecision.h"
31 #include "ot_mathematique.h"
33 #include <muParser.h>
34 
35 
36 
37 double2 moment (double2 theta,std::vector<OT_VECTEUR_4DD>& ctrpts,int plan);
41 void swap(double2& a,double2& b);
42 void Shift(double2&a,double2&b,double2&c,double2 d);
43 void min_Brak(double2 &ax,double2 &bx,double2 &cx,double2 &fa,double2 &fb,double2 &fc,std::vector<OT_VECTEUR_4DD>& ctrpts,int plan);
44 std::vector<OT_VECTEUR_4DD> system_axes(std::vector<OT_VECTEUR_4DD>& ctrpts);
45 
47 {
48 public:
49 OT_FONCTION_SYMBOLIQUE(char *f,char *var);
51 virtual ~OT_FONCTION_SYMBOLIQUE();
52 
53 virtual int get_nb_variable(void);
54 virtual std::string get_nom_variable(int num);
55 
56 virtual double evalue(double *var);
57 virtual double integre(double a,double b,int nb_pas=32);
58 virtual void def_fonction(char* nom,double f(double));
59 virtual void def_fonction(char* nom,double f(double,double));
60 virtual void def_fonction(char* nom,double f(double,double,double));
61 
62 protected:
63 mu::Parser parseur;
65 std::string formule;
66 std::vector<std::string> variable;
67 
68 
69 
70 
71 
72 
73 };
74 
75 
76 #endif
virtual int get_nb_variable(void)
virtual std::string get_nom_variable(int num)
virtual ~OT_FONCTION_SYMBOLIQUE()
OT_FONCTION_SYMBOLIQUE(char *f, char *var)
std::vector< std::string > variable
Definition: ot_fonctions.h:66
virtual double evalue(double *var)
virtual void def_fonction(char *nom, double f(double))
virtual double integre(double a, double b, int nb_pas=32)
double f(double x, long nb, double *xfonc, double *fonc, double eng, double eni, double lambda, double nor, double *fonc2)
double2 Min(double2 a, double2 b)
double2 Sign(double2 a, double2 b)
void Shift(double2 &a, double2 &b, double2 &c, double2 d)
double2 Max(double2 a, double2 b)
double2 moment(double2 theta, std::vector< OT_VECTEUR_4DD > &ctrpts, int plan)
void min_Brak(double2 &ax, double2 &bx, double2 &cx, double2 &fa, double2 &fb, double2 &fc, std::vector< OT_VECTEUR_4DD > &ctrpts, int plan)
void swap(double2 &a, double2 &b)
std::vector< OT_VECTEUR_4DD > system_axes(std::vector< OT_VECTEUR_4DD > &ctrpts)
#define a(i, j)