Révision 246 pobysoPythonSage/src/sollya_lib.sage
sollya_lib.sage (revision 246) | ||
---|---|---|
128 | 128 |
try: |
129 | 129 |
sollya_lib_get_free_variable_name.restype = c_char_p |
130 | 130 |
except : |
131 |
print "\nOne of the Python-Sollya return type setting command has \
|
|
132 |
failed.\n"
|
|
131 |
sys.stderr.write("\nOne of the Python-Sollya return type setting command \n")
|
|
132 |
sys.stderr.write("has failed.\n\n")
|
|
133 | 133 |
sys.exit(1) |
134 | 134 |
# |
135 | 135 |
# Set the argument type of several functions. Default arguments are int. |
... | ... | |
173 | 173 |
sollya_lib_range_from_interval.argtypes = [c_ulong] |
174 | 174 |
sollya_lib_range_from_interval.restype = c_ulong |
175 | 175 |
except : |
176 |
print "\nOne of the Python-Sollya argument type setting command has \
|
|
177 |
failed.\n"
|
|
176 |
sys.stderr.write("\nOne of the Python-Sollya return type setting command \n")
|
|
177 |
sys.stderr.write("has failed.\n\n")
|
|
178 | 178 |
sys.exit(1) |
179 | 179 |
# |
180 | 180 |
# Give it a try! |
181 | 181 |
# |
182 | 182 |
sollya |
183 | 183 |
sollya.sollya_lib_init(None) |
184 |
print "\nSuperficial Sollya library check..."
|
|
184 |
sys.stderr.write("\nSuperficial Sollya library check...\n")
|
|
185 | 185 |
|
186 | 186 |
#print sollya.sollya_lib_get_free_variable_name() |
187 | 187 |
sollyaExp = sollya_lib_parse_string("exp(x)") |
... | ... | |
197 | 197 |
#print "Precision : ", a.value |
198 | 198 |
#print "Address of a.value ", addressof(a) |
199 | 199 |
#sollya_lib_close(None) |
200 |
print "...Sollya library check done."
|
|
200 |
sys.stderr.write("\t...Sollya library check done.\n")
|
|
201 | 201 |
# |
202 | 202 |
# |
203 | 203 |
# |
Formats disponibles : Unified diff