Statistiques
| Révision :

root / pobysoPythonSage / src / sageSLZ / runSLZ-06.sage.py @ 230

Historique | Voir | Annoter | Télécharger (2,64 ko)

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