Révision 139 pobysoC-4.0/src/pobyso.h

pobyso.h (revision 139)
30 30
#define POBYSO_ABSOLUTE (1)
31 31
#define POBYSO_RELATIVE (2)
32 32

  
33
#define POBYSO_UNFAITHFULL (129)
34
#define POBYSO_NAN (130)
35

  
33 36
#define POBYSO_OFF (0)
34 37
#define POBYSO_ON (1)
35 38

  
......
74 77
pobyso_get_verbosity();
75 78

  
76 79
/**
80
 * Evaluate an expression for a constant.
81
 *
82
 * The result of the evaluation must be "inited" by the caller.
83
 * Its contents is modified only if the evaluation yields some usefull
84
 * result.
85
 *@param functionSo : the function to evaluate;
86
 *@param argumentMp : the argument used for the evaluation;
87
 *@param evalutionMp: the result of the evalution.
88
 *@retun 0 if 0K, 1 in case of a "generic" error, POBYSO_UNFAITHFULL if the
89
 *       result is the mean of the two bound of the range encompassing it
90
 *       and POBYSO_NAN if the result of the evaluation is not a number.
91
 */
92
int
93
pobyso_evaluate_constant(pobyso_func_exp_t functionSo,
94
                         mpfr_t argumentMp,
95
                         mpfr_t evaluationMp);
96
/**
77 97
 * Check if a sollya object is a constant expression.
78 98
 * @return 1 if true and zero otherwise
79 99
 */

Formats disponibles : Unified diff