Révision 272 pobysoPythonSage/src/sageSLZ/sageSLZ.sage
sageSLZ.sage (revision 272) | ||
---|---|---|
863 | 863 |
# |
864 | 864 |
def slz_compute_polynomial_and_interval(functionSo, degreeSo, lowerBoundSa, |
865 | 865 |
upperBoundSa, approxAccurSa, |
866 |
precSa=None): |
|
866 |
precSa=None, debug=False):
|
|
867 | 867 |
""" |
868 | 868 |
Under the assumptions listed for slz_get_intervals_and_polynomials, compute |
869 | 869 |
a polynomial that approximates the function on a an interval starting |
... | ... | |
873 | 873 |
precision is reached. |
874 | 874 |
The polynomial, the bounds, the center of the interval and the error |
875 | 875 |
are returned. |
876 |
Argument debug is not used. |
|
876 | 877 |
OUTPUT: |
877 | 878 |
A tuple made of 4 Sollya objects: |
878 | 879 |
- a polynomial; |
... | ... | |
995 | 996 |
- the center of the interval; |
996 | 997 |
- the maximum error in the approximation of the input functionSo by the |
997 | 998 |
output polynomial ; this error <= approxAccurSaS. |
999 |
|
|
1000 |
Changes from version 0 (no number): |
|
1001 |
- make use of debug argument; |
|
1002 |
- polynomial coefficients are "shaved". |
|
998 | 1003 |
|
999 | 1004 |
""" |
1000 | 1005 |
#print"In slz_compute_polynomial_and_interval..." |
Formats disponibles : Unified diff