root / pobysoPythonSage / src / sageSLZ / runSLZ-06.sage.py @ 232
Historique | Voir | Annoter | Télécharger (2,64 ko)
| 1 |
# This file was *autogenerated* from the file ./runSLZ-06.sage
|
|---|---|
| 2 |
from sage.all_cmdline import * # import sage library |
| 3 |
_sage_const_3 = Integer(3); _sage_const_2 = Integer(2); _sage_const_35 = Integer(35); _sage_const_8 = Integer(8); _sage_const_1023 = Integer(1023); _sage_const_1022 = Integer(1022); _sage_const_10 = Integer(10); _sage_const_53 = Integer(53)#! /opt/sage/sage |
| 4 |
# @file runSLZ-05.sage
|
| 5 |
#from scipy.constants.codata import precision
|
| 6 |
def initialize_env(): |
| 7 |
"""
|
| 8 |
Load all necessary modules.
|
| 9 |
"""
|
| 10 |
compiledSpyxDir = "/home/storres/recherche/arithmetique/pobysoPythonSage/compiledSpyx"
|
| 11 |
if compiledSpyxDir not in sys.path: |
| 12 |
sys.path.append(compiledSpyxDir) |
| 13 |
if not 'mpfi' in sage.misc.cython.standard_libs: |
| 14 |
sage.misc.cython.standard_libs.append('mpfi')
|
| 15 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sollya_lib.sage")
|
| 16 |
#load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageMpfr.spyx")
|
| 17 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/pobyso.py")
|
| 18 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sageSLZ.sage")
|
| 19 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sageNumericalOperations.sage")
|
| 20 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sageRationalOperations.sage")
|
| 21 |
# Matrix operations are loaded by polynomial operations.
|
| 22 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sagePolynomialOperations.sage")
|
| 23 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sageRunSLZ.sage")
|
| 24 |
|
| 25 |
|
| 26 |
print "Running SLZ..." |
| 27 |
initialize_env() |
| 28 |
from sageMpfr import * |
| 29 |
from sageGMP import * |
| 30 |
#
|
| 31 |
x = var('x')
|
| 32 |
__tmp__=var("x"); func = symbolic_expression(exp(x)).function(x)
|
| 33 |
precision = _sage_const_53 |
| 34 |
RRR = RealField(precision) |
| 35 |
intervalCenter = RRR(_sage_const_3 /_sage_const_2 ) |
| 36 |
icUlp = intervalCenter.ulp() |
| 37 |
intervalRadiusInUlp = _sage_const_2 **_sage_const_8 |
| 38 |
intervalRadius = RRR(_sage_const_2 **(-_sage_const_35 )) |
| 39 |
srs_run_SLZ_v06(inputFunction = func, |
| 40 |
inputLowerBound = intervalCenter - intervalRadiusInUlp * icUlp, |
| 41 |
inputUpperBound = intervalCenter + intervalRadiusInUlp * icUlp, |
| 42 |
alpha = _sage_const_2 , |
| 43 |
degree = _sage_const_2 , |
| 44 |
precision = precision, |
| 45 |
emin = -_sage_const_1022 , |
| 46 |
emax = _sage_const_1023 , |
| 47 |
targetHardnessToRound = precision + _sage_const_10 , |
| 48 |
debug = True)
|
| 49 |
#
|