Révision 149
pobysoC-4.0/src/pobyso.c (revision 149) | ||
---|---|---|
632 | 632 |
return monomialSo; |
633 | 633 |
} /* End pobyso_new_monomial. */ |
634 | 634 |
|
635 |
/* @see pobyso.h#pobyso_parse_string*/ |
|
635 |
/* @see pobyso.h#pobyso_off */ |
|
636 |
pobyso_on_off_t |
|
637 |
pobyso_off() |
|
638 |
{ |
|
639 |
return sollya_lib_off(); |
|
640 |
} /* End pobyso_off. */ |
|
641 |
|
|
642 |
/* @see pobyso.h#pobyso_off */ |
|
643 |
pobyso_on_off_t |
|
644 |
pobyso_on() |
|
645 |
{ |
|
646 |
return sollya_lib_on(); |
|
647 |
} /* End pobyso_on. */ |
|
648 |
|
|
649 |
|
|
650 |
/* @see pobyso.h#pobyso_parse_string */ |
|
636 | 651 |
pobyso_func_exp_t |
637 | 652 |
pobyso_parse_string(const char* expression) |
638 | 653 |
{ |
... | ... | |
726 | 741 |
return NULL; |
727 | 742 |
} /* pobyso_parse_string */ |
728 | 743 |
|
744 |
/** @see pobyso.h#pobyso_range_from_bounds */ |
|
745 |
pobyso_range_t |
|
746 |
pobyso_range_from_bounds(mpfr_t lowerBound, mpfr_t upperBound) |
|
747 |
{ |
|
748 |
/* Supferficial check of arguments. */ |
|
749 |
if (mpfr_cmp(lowerBound, upperBound) > 0) |
|
750 |
{ |
|
751 |
return(NULL); |
|
752 |
} |
|
753 |
return(sollya_lib_range_from_bounds(lowerBound, upperBound)); |
|
754 |
} |
|
755 |
|
|
729 | 756 |
pobyso_func_exp_t |
730 | 757 |
pobyso_remez_canonical_monomials_base(pobyso_func_exp_t function, |
731 | 758 |
long int degree, |
pobysoC-4.0/src/pobyso.h (revision 149) | ||
---|---|---|
108 | 108 |
* result. In this case, its precision may change too. |
109 | 109 |
*@param functionSo : the function to evaluate; |
110 | 110 |
*@param argumentMp : the argument used for the evaluation; |
111 |
*@param evalutionMp: the result of the evalution. |
|
111 |
*@param evalutionMp: the result of the evaluation.
|
|
112 | 112 |
*@retun 0 if 0K, 1 in case of a "generic" error, POBYSO_UNFAITHFULL if the |
113 | 113 |
* result is the mean of the two bound of the range encompassing it |
114 | 114 |
* and POBYSO_NAN if the result of the evaluation is not a number. |
... | ... | |
159 | 159 |
pobyso_new_monomial(pobyso_func_exp_t coefficient, long degree); |
160 | 160 |
|
161 | 161 |
/** |
162 |
* Create a Sollya "off" object. */ |
|
163 |
pobyso_on_off_t |
|
164 |
pobyso_on(); |
|
165 |
|
|
166 |
/** |
|
167 |
* Create a Sollya "on" object. */ |
|
168 |
pobyso_on_off_t |
|
169 |
pobyso_off(); |
|
170 |
|
|
171 |
/** |
|
162 | 172 |
* A wrapper around the Sollya Remez function. |
163 | 173 |
*/ |
164 | 174 |
/** |
... | ... | |
172 | 182 |
pobyso_func_exp_t |
173 | 183 |
pobyso_parse_string(const char* expression); |
174 | 184 |
|
185 |
/** Create a Sollya range from two MPFR bounds. |
|
186 |
* A wrapper around sollya_lib_range_from_bounds. |
|
187 |
*/ |
|
188 |
pobyso_range_t |
|
189 |
pobyso_range_from_bounds(mpfr_t lowerBound, mpfr_t upperBound); |
|
190 |
|
|
175 | 191 |
/** |
176 | 192 |
* A wrapper around the Sollya Remez function with the canonical monomials |
177 | 193 |
* base. |
178 | 194 |
Formats disponibles : Unified diff