Révision 285 pobysoPythonSage/src/sollya_lib.sage

sollya_lib.sage (revision 285)
1 1
import sys
2 2
from ctypes import *
3
from sage.rings.real_mpfr import *
3
## Commented out the below import since it apparently break the creation
4
#  of RealField elements from literals.
5
#from sage.rings.real_mpfr import *
4 6
#
5 7
## Load the Sollya library.
6 8
try:
......
11 13
#
12 14
try:
13 15
    # Export the functions with their name in the library (so we can
14
    # use them without the "sollya." prefix).
16
    # call them without the "sollya." prefix).
15 17
        sollya_lib_add = sollya.sollya_lib_add
16 18
        sollya_lib_abs = sollya.sollya_lib_abs
17 19
        sollya_lib_absolute = sollya.sollya_lib_absolute
......
143 145
    sollya_lib_append.argstypes              = [c_ulong, c_ulong]
144 146
    #sollya_lib_autoprint.argtypes            = [c_ulong]
145 147
    sollya_lib_build_function_add.argtypes   = [c_int, c_int]
148
    sollya_lib_chebyshevform.argtypes        = [c_ulong, c_ulong]
149
    sollya_lib_chebyshevform.restype         = c_ulong          
146 150
    sollya_lib_constant.argtypes             = [c_ulong]
147 151
    sollya_lib_constant_from_int64.argtypes  = [c_long]
148 152
    sollya_lib_constant_from_mpq.argtypes    = [c_ulong]

Formats disponibles : Unified diff