Révision 184
pobysoPythonSage/src/sageSLZ/runSLZ-01.sage (revision 184) | ||
---|---|---|
1 |
#! /opt/sage/sage |
|
2 |
def initialize_env(): |
|
3 |
#Load all necessary modules. |
|
4 |
if not 'mpfi' in sage.misc.cython.standard_libs: |
|
5 |
sage.misc.cython.standard_libs.append('mpfi') |
|
6 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sollya_lib.sage") |
|
7 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/pobyso.py") |
|
8 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageMpfr.spyx") |
|
9 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sageSLZ.sage") |
|
10 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sageNumericalOperations.sage") |
|
11 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sageRationalOperations.sage") |
|
12 |
# Matrix operations are loaded by polynomial operations. |
|
13 |
load("/home/storres/recherche/arithmetique/pobysoPythonSage/src/sageSLZ/sagePolynomialOperations.sage") |
|
14 |
|
|
15 |
|
|
16 |
def run_SLZ(function, |
|
17 |
lowerBound, |
|
18 |
upperBound, |
|
19 |
alpha, |
|
20 |
degree, |
|
21 |
precision, |
|
22 |
targetHardnessToRound, |
|
23 |
debug = False): |
|
24 |
|
|
25 |
if debug: |
|
26 |
print "Function :", function |
|
27 |
print "Lower bound :", lowerBound |
|
28 |
print "Upper bounds :", upperBound |
|
29 |
print "Alpha :", alpha |
|
30 |
print "Degree :", degree |
|
31 |
print "Precision :", precision |
|
32 |
print "Target hardness-to-round:", targetHardnessToRound |
|
33 |
|
|
34 |
print "Running SLZ..." |
|
35 |
#initialize_env() |
|
36 |
run_SLZ(exp(x), 1/4, 1/2, 2, 2, 53, 100, True) |
|
37 |
|
|
0 | 38 |
Formats disponibles : Unified diff