Attachment '3.2.3.final-solaris-misc-fixes.patch'
Download 1 # HG changeset patch
2 # User mabshoff@fulvia
3 # Date 1231718045 18000
4 # Node ID 1492e39aff50ad3d303bfe97541816e4e6559962
5 # Parent e69ceb84399b53c56c712d1cbf02eff690d15aad
6 Various Solaris fixes - partially unclean
7
8 diff -r e69ceb84399b -r 1492e39aff50 sage/interfaces/singular.py
9 --- a/sage/interfaces/singular.py Fri Jan 02 23:01:05 2009 -0500
10 +++ b/sage/interfaces/singular.py Sun Jan 11 18:54:05 2009 -0500
11 @@ -316,7 +316,7 @@
12 restart_on_ctrlc = True,
13 verbose_start = False,
14 logfile = logfile,
15 - eval_using_file_cutoff=1000)
16 + eval_using_file_cutoff=100)
17 self.__libs = []
18 self._prompt_wait = prompt
19 self.__to_clear = [] # list of variable names that need to be cleared.
20 diff -r e69ceb84399b -r 1492e39aff50 sage/rings/complex_double.pyx
21 --- a/sage/rings/complex_double.pyx Fri Jan 02 23:01:05 2009 -0500
22 +++ b/sage/rings/complex_double.pyx Sun Jan 11 18:54:05 2009 -0500
23 @@ -789,7 +789,8 @@
24 s = s+"%s*I"%y
25 if len(s) == 0:
26 s = "0"
27 - return s
28 + s_clean=s.replace("NaN","nan").replace("-nan","nan")
29 + return s_clean
30
31 def _latex_(self):
32 """
33 diff -r e69ceb84399b -r 1492e39aff50 sage/rings/qqbar.py
34 --- a/sage/rings/qqbar.py Fri Jan 02 23:01:05 2009 -0500
35 +++ b/sage/rings/qqbar.py Sun Jan 11 18:54:05 2009 -0500
36 @@ -3823,9 +3823,13 @@
37 EXAMPLES:
38 sage: x = polygen(ZZ)
39 sage: cp = AA.common_polynomial(x^4 - 2)
40 +
41 + Note that the precision is not guaraneteed to find the tightest possible interval
42 + since complex_roots() depends on the underlying BLAS implementation.
43 +
44 sage: cp.complex_roots(30, 1)
45 [1.189207115002721?,
46 - -1.189207115002721?,
47 + -1.18920711500272...?,
48 1.189207115002721?*I,
49 -1.189207115002721?*I]
50 """
51 diff -r e69ceb84399b -r 1492e39aff50 sage/rings/real_double.pyx
52 --- a/sage/rings/real_double.pyx Fri Jan 02 23:01:05 2009 -0500
53 +++ b/sage/rings/real_double.pyx Sun Jan 11 18:54:05 2009 -0500
54 @@ -1283,9 +1283,9 @@
55 cdef _log_base(self, double log_of_base):
56 if self._value < 2:
57 if self._value == 0:
58 - return -1./0
59 + return RDF(-1)/RDF(0)
60 if self._value < 0:
61 - return 0./0
62 + return RDF(0)/RDF(0)
63 _sig_on
64 a = self._new_c(gsl_sf_log_1plusx(self._value - 1) / log_of_base)
65 _sig_off
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.