mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-21 11:19:02 -04:00
Also: - Bundle ipython again; Fedora version is too far ahead. Also have to bundle prompt_toolkit since Fedora version is too far ahead of bundled ipython. - Drop LANGUAGES variable setting, now ignored by the sagemath build system. - Drop unused SAGE_CBLAS variable from /usr/bin/sage. - Do not force the C locale when launching sagemath. - Allow the user to override SAGE_DEBUG in /usr/bin/sage. - Add -ecm, -giac, and -latte patches to fix interactions with external tools. - Add -sigfpe patch from upstream.
47 lines
2.4 KiB
Diff
47 lines
2.4 KiB
Diff
diff -up src/sage/libs/mpfr/__init__.pxd.orig src/sage/libs/mpfr/__init__.pxd
|
|
--- src/sage/libs/mpfr/__init__.pxd.orig 2018-12-22 16:37:08.000000000 -0700
|
|
+++ src/sage/libs/mpfr/__init__.pxd 2019-01-04 11:10:25.215172876 -0700
|
|
@@ -96,7 +96,6 @@ cdef extern from "mpfr.h":
|
|
int mpfr_sqrt(mpfr_t rop, mpfr_t op, mpfr_rnd_t rnd)
|
|
int mpfr_sqrt_ui(mpfr_t rop, unsigned long int op, mpfr_rnd_t rnd)
|
|
int mpfr_cbrt(mpfr_t rop, mpfr_t op, mpfr_rnd_t rnd)
|
|
- int mpfr_rootn_ui(mpfr_t rop, mpfr_t op, unsigned long int k, mpfr_rnd_t rnd)
|
|
int mpfr_root(mpfr_t rop, mpfr_t op, unsigned long int k, mpfr_rnd_t rnd)
|
|
int mpfr_pow(mpfr_t rop, mpfr_t op1, mpfr_t op2, mpfr_rnd_t rnd)
|
|
int mpfr_pow_ui(mpfr_t rop, mpfr_t op1, unsigned long int op2, mpfr_rnd_t rnd)
|
|
diff -up src/sage/rings/complex_mpc.pyx.orig src/sage/rings/complex_mpc.pyx
|
|
--- src/sage/rings/complex_mpc.pyx.orig 2018-12-22 16:37:09.000000000 -0700
|
|
+++ src/sage/rings/complex_mpc.pyx 2019-01-04 11:10:25.217172839 -0700
|
|
@@ -2222,7 +2222,7 @@ cdef class MPComplexNumber(sage.structur
|
|
cdef RealNumber a,r
|
|
a = self.argument()/n
|
|
r = self.abs()
|
|
- mpfr_rootn_ui(r.value, r.value, n, rrnd)
|
|
+ mpfr_root(r.value, r.value, n, rrnd)
|
|
|
|
cdef MPComplexNumber z
|
|
z = self._new()
|
|
diff -up src/sage/rings/complex_number.pyx.orig src/sage/rings/complex_number.pyx
|
|
--- src/sage/rings/complex_number.pyx.orig 2018-12-22 16:37:09.000000000 -0700
|
|
+++ src/sage/rings/complex_number.pyx 2019-01-04 11:10:25.218172820 -0700
|
|
@@ -2276,7 +2276,7 @@ cdef class ComplexNumber(sage.structure.
|
|
rho = abs(self)
|
|
arg = self.argument() / n
|
|
mpfr_init2(r, self._prec)
|
|
- mpfr_rootn_ui(r, rho.value, n, rnd)
|
|
+ mpfr_root(r, rho.value, n, rnd)
|
|
|
|
mpfr_sin_cos(z.__im, z.__re, arg.value, rnd)
|
|
mpfr_mul(z.__re, z.__re, r, rnd)
|
|
diff -up src/sage/rings/real_mpfr.pyx.orig src/sage/rings/real_mpfr.pyx
|
|
--- src/sage/rings/real_mpfr.pyx.orig 2019-01-04 12:22:18.194171036 -0700
|
|
+++ src/sage/rings/real_mpfr.pyx 2019-01-16 09:46:36.794780751 -0700
|
|
@@ -5384,7 +5384,7 @@ cdef class RealNumber(sage.structure.ele
|
|
if algorithm == 1:
|
|
x = self._new()
|
|
sig_on()
|
|
- mpfr_rootn_ui(x.value, self.value, n, (<RealField_class>self._parent).rnd)
|
|
+ mpfr_root(x.value, self.value, n, (<RealField_class>self._parent).rnd)
|
|
sig_off()
|
|
return x
|
|
|