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
moment
double2 moment(double2 theta, std::vector< OT_VECTEUR_4DD > &ctrpts, int plan)
Definition: ot_fonctions.cpp:28
Shift
void Shift(double2 &a, double2 &b, double2 &c, double2 d)
Definition: ot_fonctions.cpp:113
OT_FONCTION_SYMBOLIQUE::evalue
virtual double evalue(double *var)
Definition: ot_fonctions.cpp:415
Min
double2 Min(double2 a, double2 b)
Definition: ot_fonctions.cpp:91
a
#define a(i, j)
OT_FONCTION_SYMBOLIQUE::~OT_FONCTION_SYMBOLIQUE
virtual ~OT_FONCTION_SYMBOLIQUE()
Definition: ot_fonctions.cpp:385
system_axes
std::vector< OT_VECTEUR_4DD > system_axes(std::vector< OT_VECTEUR_4DD > &ctrpts)
Definition: ot_fonctions.cpp:221
OT_FONCTION_SYMBOLIQUE::formule
std::string formule
Definition: ot_fonctions.h:65
OT_FONCTION_SYMBOLIQUE::get_nb_variable
virtual int get_nb_variable(void)
Definition: ot_fonctions.cpp:389
OT_FONCTION_SYMBOLIQUE::get_nom_variable
virtual std::string get_nom_variable(int num)
Definition: ot_fonctions.cpp:394
OT_FONCTION_SYMBOLIQUE
Definition: ot_fonctions.h:46
OT_FONCTION_SYMBOLIQUE::variable
std::vector< std::string > variable
Definition: ot_fonctions.h:66
double2
Definition: ot_doubleprecision.h:29
ot_doubleprecision.h
swap
void swap(double2 &a, double2 &b)
Definition: ot_fonctions.cpp:106
OT_FONCTION_SYMBOLIQUE::def_fonction
virtual void def_fonction(char *nom, double f(double))
Definition: ot_fonctions.cpp:405
f
double f(double x, long nb, double *xfonc, double *fonc, double eng, double eni, double lambda, double nor, double *fonc2)
Definition: fct_generateur_calibrage.cpp:96
OT_FONCTION_SYMBOLIQUE::nb_variable
int nb_variable
Definition: ot_fonctions.h:64
Sign
double2 Sign(double2 a, double2 b)
Definition: ot_fonctions.cpp:96
min_Brak
void min_Brak(double2 &ax, double2 &bx, double2 &cx, double2 &fa, double2 &fb, double2 &fc, std::vector< OT_VECTEUR_4DD > &ctrpts, int plan)
Definition: ot_fonctions.cpp:120
ot_mathematique.h
Max
double2 Max(double2 a, double2 b)
Definition: ot_fonctions.cpp:86
OT_FONCTION_SYMBOLIQUE::integre
virtual double integre(double a, double b, int nb_pas=32)
Definition: ot_fonctions.cpp:431
OT_FONCTION_SYMBOLIQUE::parseur
mu::Parser parseur
Definition: ot_fonctions.h:63
ot_algorithme_geometrique.h
OT_FONCTION_SYMBOLIQUE::OT_FONCTION_SYMBOLIQUE
OT_FONCTION_SYMBOLIQUE(char *f, char *var)
Definition: ot_fonctions.cpp:353