Index: pobysoPythonSage/src/pobyso.py
===================================================================
--- pobysoPythonSage/src/pobyso.py	(revision 52)
+++ pobysoPythonSage/src/pobyso.py	(revision 53)
@@ -223,7 +223,7 @@
 
 def pobyso_get_constant(rnArg, soConst):
     """ Legacy function. See pobyso_get_constant_so_sa. """
-    pobyso_get_constant_so_sa(rnArg, soConst)
+    return(pobyso_get_constant_so_sa(rnArg, soConst))
 
 def pobyso_get_constant_so_sa(rnArg, soConst):
     """
@@ -231,7 +231,7 @@
     rnArg must already exist and belong to some RealField.
     We assume that soConst points to a Sollya constant.
     """
-    sollya_lib_get_constant(get_rn_value(rnArg), soConst)
+    return(sollya_lib_get_constant(get_rn_value(rnArg), soConst))
     
 def pobyso_get_constant_as_rn(ctExp):
     """ Legacy function. See pobyso_get_constant_as_rn_so_sa. """ 
@@ -245,7 +245,7 @@
     return(rn)
 
 def pobyso_get_constant_as_rn_with_rf(ctExp, realField):
-    """ Legacy function. See ."""
+    """ Legacy function. See pobyso_get_constant_as_rn_with_rf_so_sa."""
     return(pobyso_get_constant_as_rn_with_rf_so_sa(ctExp, realField))
     
 def pobyso_get_constant_as_rn_with_rf_so_sa(ctExp, realField):
@@ -278,6 +278,25 @@
     sollya_lib_get_head_function(byref(functionType), expressionSo, None)
     return(int(functionType.value))
 
+def pobyso_get_interval_from_range_so_sa(soRange):
+    """
+    Return the Sage interval corresponding to the Sollya range argument.
+    The interval bounds are not rounded: they are elements of RealIntervalField
+    of the "right" precision.
+    """
+    prec = c_int(0)
+    retval = sollya_lib_get_prec_of_range(byref(prec), soRange, None)
+    if retval == 0:
+        return(None)
+    RRRI = RealIntervalField(prec.value)
+    intervalSa = RRRI(0,0)
+    retval = \
+        sollya_lib_get_interval_from_range(get_interval_value(intervalSa),\
+                                           soRange)
+    if retval == 0:
+        return(None)
+    return(intervalSa)
+    
 def pobyso_get_list_elements(soObj):
     """ Legacy function. See pobyso_get_list_elements_so_so. """
     return(pobyso_get_list_elements_so_so(soObj))
@@ -456,11 +475,14 @@
     """ Legacy function. See pobyso_get_prec_of_constant_so_sa. """
     return(pobyso_get_prec_of_constant_so_sa(ctExpSo))
 
-def pobyso_get_prec_of_constant_so_sa(ctExpSo):
+def pobyso_get_prec_of_range_so_sa(rangeSo):
     prec = c_int(0)
-    retc = sollya_lib_get_prec_of_constant(byref(prec), ctExpSo, None)
+    retc = sollya_lib_get_prec_of_range(byref(prec), rangeSo, None)
     return(int(prec.value))
 
+def pobyso_infnorm_so_so(func, interval, file = None, intervalList = None):
+    return(sollya_lib_infnorm(func, interval, file, intervalList, None))
+
 def pobyso_lib_init():
     sollya_lib_init(None)
     
Index: pobysoPythonSage/src/sageMpfr.spyx
===================================================================
--- pobysoPythonSage/src/sageMpfr.spyx	(revision 52)
+++ pobysoPythonSage/src/sageMpfr.spyx	(revision 53)
@@ -1,4 +1,5 @@
 from sage.rings.real_mpfr cimport *
+from sage.rings.real_mpfi cimport *
 #
 # Functions to manipulate the real RealNumber values.
 #
@@ -11,14 +12,29 @@
 cdef extern from "mpfr.h":
     cdef int MPFR_PREC_MIN "MPFR_PREC_MIN"
     cdef unsigned int mpfr_min_prec(mpfr_t x)
-        
 
+cpdef int get_interval_value(RealIntervalFieldElement x):
+    """
+    Get the address of the value of a RealIntervalField Element. 
+    This address can be used to to set the value as well.
+    """
+    return(<int>&(x.value))
+
 cpdef int get_rn_value(RealNumber x):
     """
     Get the address of the value of a RealNumber. This address can be
     used to to set the value as well.
     """
     return(<int>&(x.value))
+    
+cpdef set_interval_value(RealIntervalFieldElement x, int p):
+    """
+    Set the value of x from MPFI interval p.
+    """
+    # We use the "array trick" to workaround the pointer dereferencing
+    # issue (in Cython there is no unary operator "*").
+    #
+    mpfi_set(x.value, (<mpfi_t *>p)[0])
 
 cpdef set_rn_value(RealNumber x, int p, mp_rnd_t rnd=GMP_RNDN):
     """
@@ -55,6 +71,20 @@
     else:
         return(min_prec)
 
+cpdef free_mpfi_num(int mpfiNum):
+    mpfi_clear((<mpfi_t*>mpfiNum)[0])
+
+cpdef free_mpfr_num(int mpfrNum):
+    mpfr_clear((<mpfr_t*>mpfrNum)[0])
+
+cpdef new_interval_num(unsigned int prec):
+    cdef mpfi_t *newValue = NULL
+    print "Precision : ", prec
+    newValue = <mpfi_t*>malloc(sizeof(mpfi_t))
+    mpfi_init2(newValue[0], prec)
+    print "Creation done!"
+    return(<int>newValue)
+
 cpdef new_mpfr_num(unsigned int prec):
     cdef mpfr_t *newValue = NULL
     print "Precision : ", prec
@@ -63,9 +93,6 @@
     print "Creation done!"
     return(<int>newValue)
 
-cpdef free_mpfr_num(int mpfrNum):
-    mpfr_clear((<mpfr_t*>mpfrNum)[0])
-
 #
 
 cpdef cmp_rn_value(RealNumber x, RealNumber y):
Index: pobysoPythonSage/src/sollya_lib.sage
===================================================================
--- pobysoPythonSage/src/sollya_lib.sage	(revision 52)
+++ pobysoPythonSage/src/sollya_lib.sage	(revision 53)
@@ -34,6 +34,8 @@
         sollya.sollya_lib_get_free_variable_name
         sollya_lib_get_function_arity = sollya.sollya_lib_get_function_arity
         sollya_lib_get_head_function = sollya.sollya_lib_get_head_function
+        sollya_lib_get_interval_from_range = \
+            sollya.sollya_lib_get_interval_from_range
         sollya_lib_get_list_elements = sollya.sollya_lib_get_list_elements
         sollya_lib_get_object_list_head = \
             sollya.sollya_lib_get_object_list_head
@@ -41,8 +43,10 @@
             sollya.sollya_lib_get_object_list_tail
         sollya_lib_get_prec = sollya.sollya_lib_get_prec
         sollya_lib_get_prec_of_constant = sollya.sollya_lib_get_prec_of_constant
+        sollya_lib_get_prec_of_range = sollya.sollya_lib_get_prec_of_range
         sollya_lib_get_subfunctions = sollya.sollya_lib_get_subfunctions
         sollya_lib_head = sollya.sollya_lib_head
+        sollya_lib_infnorm = sollya.sollya_lib_infnorm
         sollya_lib_init= sollya.sollya_lib_init
         sollya_lib_is_absolute = sollya.sollya_lib_is_absolute
         sollya_lib_name_free_variable = \
@@ -85,12 +89,15 @@
     sollya_lib_get_constant_as_int.argtypes  = [POINTER(c_int), c_int]
     sollya_lib_get_function_arity.argtypes   = [POINTER(c_int), c_int]
     sollya_lib_get_head_function.argtypes    = [POINTER(c_int), c_int]
-    sollya_lib_get_list_elements.argtypes    = [POINTER(POINTER(c_longlong)), POINTER(c_int),\
+    sollya_lib_get_list_elements.argtypes    = [POINTER(POINTER(c_longlong)), \
+                                                POINTER(c_int),\
                                                 POINTER(c_int), c_int]
     sollya_lib_get_prec_of_constant.argtypes = [POINTER(c_int), c_int]
+    sollya_lib_get_prec_of_range.argtypes    = [POINTER(c_int), c_int]
     sollya_lib_get_subfunctions.argtypes     = [c_int, POINTER(c_int), \
-    POINTER(c_int), POINTER(c_int), POINTER(c_int), POINTER(c_int), POINTER(c_int), \
-    POINTER(c_int), POINTER(c_int), POINTER(c_int), POINTER(c_int), POINTER(c_int)]
+            POINTER(c_int), POINTER(c_int), POINTER(c_int), POINTER(c_int), \
+            POINTER(c_int), POINTER(c_int), POINTER(c_int), POINTER(c_int), \
+            POINTER(c_int), POINTER(c_int)]
     sollya_lib_name_free_variable.argtypes   = [POINTER(c_char)]
 except :
     print "\nOne of the Python-Sollya argument type setting command has \
