Révision 242
pobysoPythonSage/src/pobyso.py (revision 242) | ||
---|---|---|
1892 | 1892 |
""" |
1893 | 1893 |
return sollya_lib_inf(intervalSo) |
1894 | 1894 |
# End pobyso_inf_so_so. |
1895 |
# |
|
1896 |
def pobyso_supnorm_so_sa(polySo, funcSo, intervalSo, errorTypeSo = None,\ |
|
1897 |
accuracySo = None, realFieldSa = None): |
|
1898 |
""" |
|
1899 |
Computes the supremum norm from Solly input arguments and returns a |
|
1900 |
Sage floating-point number whose precision is set by the only Sage argument. |
|
1895 | 1901 |
|
1902 |
The returned value is the maximum of the absolute values of the range |
|
1903 |
elements returned by the Sollya supnorm functions |
|
1904 |
""" |
|
1905 |
supNormRangeSo = pobyso_supnorm_so_so(polySo, |
|
1906 |
funcSo, |
|
1907 |
intervalSo, |
|
1908 |
errorTypeSo, |
|
1909 |
accuracySo) |
|
1910 |
supNormSo = pobyso_range_max_abs_so_so(supNormRangeSo) |
|
1911 |
sollya_lib_clear_obj(supNormRangeSo) |
|
1912 |
#pobyso_autoprint(supNormSo) |
|
1913 |
supNormSa = pobyso_get_constant_as_rn_with_rf_so_sa(supNormSo, realFieldSa) |
|
1914 |
sollya_lib_clear_obj(supNormSo) |
|
1915 |
return supNormSa |
|
1916 |
# End pobyso_supnorm_so_sa. |
|
1917 |
# |
|
1896 | 1918 |
def pobyso_supnorm_so_so(polySo, funcSo, intervalSo, errorTypeSo = None,\ |
1897 | 1919 |
accuracySo = None): |
1898 | 1920 |
""" |
1899 | 1921 |
Computes the supnorm of the approximation error between the given |
1900 |
polynomial and function. |
|
1922 |
polynomial and function. Attention: returns a range!
|
|
1901 | 1923 |
errorTypeSo defaults to "absolute". |
1902 | 1924 |
accuracySo defaults to 2^(-40). |
1903 | 1925 |
""" |
... | ... | |
1923 | 1945 |
sollya_lib_clear_obj(accuracySo) |
1924 | 1946 |
return resultSo |
1925 | 1947 |
# End pobyso_supnorm_so_so |
1926 |
|
|
1948 |
# |
|
1927 | 1949 |
def pobyso_taylor_expansion_no_change_var_so_so(functionSo, |
1928 | 1950 |
degreeSo, |
1929 | 1951 |
rangeSo, |
Formats disponibles : Unified diff