Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package calcium for openSUSE:Factory checked 
in at 2021-11-11 21:38:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/calcium (Old)
 and      /work/SRC/openSUSE:Factory/.calcium.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "calcium"

Thu Nov 11 21:38:00 2021 rev:3 rq:930768 version:0.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/calcium/calcium.changes  2021-06-19 
23:04:58.715850685 +0200
+++ /work/SRC/openSUSE:Factory/.calcium.new.1890/calcium.changes        
2021-11-11 21:39:08.585007725 +0100
@@ -1,0 +2,6 @@
+Thu Nov 11 00:12:04 UTC 2021 - Jan Engelhardt <[email protected]>
+
+- Update to release 0.4.1
+  * Added flint 2.8 compatibility
+
+-------------------------------------------------------------------

Old:
----
  0.4.0.tar.gz

New:
----
  0.4.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ calcium.spec ++++++
--- /var/tmp/diff_new_pack.Lh3hUg/_old  2021-11-11 21:39:08.925007972 +0100
+++ /var/tmp/diff_new_pack.Lh3hUg/_new  2021-11-11 21:39:08.925007972 +0100
@@ -18,7 +18,7 @@
 
 Name:           calcium
 %define lname   libcalcium0
-Version:        0.4.0
+Version:        0.4.1
 Release:        0
 Summary:        Library for exact computation with real and complex numbers
 License:        LGPL-2.1-or-later

++++++ 0.4.0.tar.gz -> 0.4.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/ca/add.c new/calcium-0.4.1/ca/add.c
--- old/calcium-0.4.0/ca/add.c  2021-05-28 13:23:04.000000000 +0200
+++ new/calcium-0.4.1/ca/add.c  2021-07-24 19:18:50.000000000 +0200
@@ -147,7 +147,7 @@
             if (fmpz_mpoly_is_fmpz(g, mctx))
                 continue;
 
-            fmpz_mpoly_divexact(q, u, g, mctx);
+            _fmpz_mpoly_q_mpoly_divexact(q, u, g, mctx);
             fmpz_mpoly_mul(fmpz_mpoly_q_numref(f), fmpz_mpoly_q_numref(res), 
q, mctx);
             fmpz_mpoly_mul(fmpz_mpoly_q_denref(f), fmpz_mpoly_q_denref(res), 
q, mctx);
             _ca_mpoly_q_reduce_ideal(f, field, ctx);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/calcium.h new/calcium-0.4.1/calcium.h
--- old/calcium-0.4.0/calcium.h 2021-05-28 13:23:04.000000000 +0200
+++ new/calcium-0.4.1/calcium.h 2021-07-24 19:18:50.000000000 +0200
@@ -33,7 +33,7 @@
 
 #define __CALCIUM_VERSION 0
 #define __CALCIUM_VERSION_MINOR 4
-#define __CALCIUM_VERSION_PATCHLEVEL 0
+#define __CALCIUM_VERSION_PATCHLEVEL 1
 #define CALCIUM_VERSION "0.4.0"
 #define __CALCIUM_RELEASE (__CALCIUM_VERSION * 10000 + \
                          __CALCIUM_VERSION_MINOR * 100 + \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/configure new/calcium-0.4.1/configure
--- old/calcium-0.4.0/configure 2021-05-28 13:23:04.000000000 +0200
+++ new/calcium-0.4.1/configure 2021-07-24 19:18:50.000000000 +0200
@@ -13,7 +13,7 @@
 # 0.0.1   => 0.0.1
 CALCIUM_MAJOR=0
 CALCIUM_MINOR=4
-CALCIUM_PATCH=0
+CALCIUM_PATCH=1
 
 PREFIX="/usr/local"
 GMP_DIR="/usr/local"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/doc/source/history.rst 
new/calcium-0.4.1/doc/source/history.rst
--- old/calcium-0.4.0/doc/source/history.rst    2021-05-28 13:23:04.000000000 
+0200
+++ new/calcium-0.4.1/doc/source/history.rst    2021-07-24 19:18:50.000000000 
+0200
@@ -9,6 +9,12 @@
 Old releases of the code can be accessed from
 https://github.com/fredrik-johansson/calcium/releases
 
+2021-07-24 - version 0.4.1
+-------------------------------------------------------------------------------
+
+* Flint 2.8 compatibility.
+
+
 2021-05-28 - version 0.4
 -------------------------------------------------------------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/fmpz_mpoly_q/add.c 
new/calcium-0.4.1/fmpz_mpoly_q/add.c
--- old/calcium-0.4.0/fmpz_mpoly_q/add.c        2021-05-28 13:23:04.000000000 
+0200
+++ new/calcium-0.4.1/fmpz_mpoly_q/add.c        2021-07-24 19:18:50.000000000 
+0200
@@ -227,8 +227,8 @@
             }
             else
             {
-                fmpz_mpoly_divexact(res_num, res_num, t, ctx);
-                fmpz_mpoly_divexact(res_den, x_den, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(res_num, res_num, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(res_den, x_den, t, ctx);
             }
 
             fmpz_mpoly_clear(t, ctx);
@@ -319,8 +319,8 @@
             fmpz_mpoly_init(t, ctx);
             fmpz_mpoly_init(u, ctx);
 
-            fmpz_mpoly_divexact(a, x_den, g, ctx);
-            fmpz_mpoly_divexact(b, y_den, g, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(a, x_den, g, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(b, y_den, g, ctx);
 
             fmpz_mpoly_mul(t, x_num, b, ctx);
             fmpz_mpoly_mul(u, y_num, a, ctx);
@@ -334,8 +334,8 @@
             }
             else
             {
-                fmpz_mpoly_divexact(res_num, res_num, t, ctx);
-                fmpz_mpoly_divexact(g, x_den, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(res_num, res_num, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(g, x_den, t, ctx);
                 fmpz_mpoly_mul(res_den, g, b, ctx);
             }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/fmpz_mpoly_q/canonicalise.c 
new/calcium-0.4.1/fmpz_mpoly_q/canonicalise.c
--- old/calcium-0.4.0/fmpz_mpoly_q/canonicalise.c       2021-05-28 
13:23:04.000000000 +0200
+++ new/calcium-0.4.1/fmpz_mpoly_q/canonicalise.c       2021-07-24 
19:18:50.000000000 +0200
@@ -73,8 +73,8 @@
 
         if (!fmpz_mpoly_is_one(g, ctx))
         {
-            fmpz_mpoly_divexact(fmpz_mpoly_q_numref(res), 
fmpz_mpoly_q_numref(res), g, ctx);
-            fmpz_mpoly_divexact(fmpz_mpoly_q_denref(res), 
fmpz_mpoly_q_denref(res), g, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(fmpz_mpoly_q_numref(res), 
fmpz_mpoly_q_numref(res), g, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(fmpz_mpoly_q_denref(res), 
fmpz_mpoly_q_denref(res), g, ctx);
         }
 
         fmpz_mpoly_clear(g, ctx);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/fmpz_mpoly_q/mul.c 
new/calcium-0.4.1/fmpz_mpoly_q/mul.c
--- old/calcium-0.4.0/fmpz_mpoly_q/mul.c        2021-05-28 13:23:04.000000000 
+0200
+++ new/calcium-0.4.1/fmpz_mpoly_q/mul.c        2021-07-24 19:18:50.000000000 
+0200
@@ -48,9 +48,9 @@
         else
         {
             fmpz_mpoly_init(u, ctx);
-            fmpz_mpoly_divexact(u, x_num, t, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(u, x_num, t, ctx);
             fmpz_mpoly_mul(res_num, u, y_num, ctx);
-            fmpz_mpoly_divexact(u, y_den, t, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(u, y_den, t, ctx);
             fmpz_mpoly_mul(res_den, x_den, u, ctx);
             fmpz_mpoly_clear(u, ctx);
         }
@@ -74,9 +74,9 @@
         else
         {
             fmpz_mpoly_init(u, ctx);
-            fmpz_mpoly_divexact(u, y_num, t, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(u, y_num, t, ctx);
             fmpz_mpoly_mul(res_num, u, x_num, ctx);
-            fmpz_mpoly_divexact(u, x_den, t, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(u, x_den, t, ctx);
             fmpz_mpoly_mul(res_den, y_den, u, ctx);
             fmpz_mpoly_clear(u, ctx);
         }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/fmpz_mpoly_q/sub.c 
new/calcium-0.4.1/fmpz_mpoly_q/sub.c
--- old/calcium-0.4.0/fmpz_mpoly_q/sub.c        2021-05-28 13:23:04.000000000 
+0200
+++ new/calcium-0.4.1/fmpz_mpoly_q/sub.c        2021-07-24 19:18:50.000000000 
+0200
@@ -227,8 +227,8 @@
             }
             else
             {
-                fmpz_mpoly_divexact(res_num, res_num, t, ctx);
-                fmpz_mpoly_divexact(res_den, x_den, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(res_num, res_num, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(res_den, x_den, t, ctx);
             }
 
             fmpz_mpoly_clear(t, ctx);
@@ -320,8 +320,8 @@
             fmpz_mpoly_init(t, ctx);
             fmpz_mpoly_init(u, ctx);
 
-            fmpz_mpoly_divexact(a, x_den, g, ctx);
-            fmpz_mpoly_divexact(b, y_den, g, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(a, x_den, g, ctx);
+            _fmpz_mpoly_q_mpoly_divexact(b, y_den, g, ctx);
 
             fmpz_mpoly_mul(t, x_num, b, ctx);
             fmpz_mpoly_mul(u, y_num, a, ctx);
@@ -335,8 +335,8 @@
             }
             else
             {
-                fmpz_mpoly_divexact(res_num, res_num, t, ctx);
-                fmpz_mpoly_divexact(g, x_den, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(res_num, res_num, t, ctx);
+                _fmpz_mpoly_q_mpoly_divexact(g, x_den, t, ctx);
                 fmpz_mpoly_mul(res_den, g, b, ctx);
             }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/fmpz_mpoly_q.h 
new/calcium-0.4.1/fmpz_mpoly_q.h
--- old/calcium-0.4.0/fmpz_mpoly_q.h    2021-05-28 13:23:04.000000000 +0200
+++ new/calcium-0.4.1/fmpz_mpoly_q.h    2021-07-24 19:18:50.000000000 +0200
@@ -266,7 +266,7 @@
 }
 
 FMPZ_MPOLY_Q_INLINE void
-fmpz_mpoly_divexact(fmpz_mpoly_t res, const fmpz_mpoly_t x, const fmpz_mpoly_t 
y, const fmpz_mpoly_ctx_t ctx)
+_fmpz_mpoly_q_mpoly_divexact(fmpz_mpoly_t res, const fmpz_mpoly_t x, const 
fmpz_mpoly_t y, const fmpz_mpoly_ctx_t ctx)
 {
     if (fmpz_mpoly_is_fmpz(y, ctx))
         fmpz_mpoly_scalar_divexact_fmpz(res, x, y->coeffs, ctx);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calcium-0.4.0/pycalcium/pyca.py 
new/calcium-0.4.1/pycalcium/pyca.py
--- old/calcium-0.4.0/pycalcium/pyca.py 2021-05-28 13:23:04.000000000 +0200
+++ new/calcium-0.4.1/pycalcium/pyca.py 2021-07-24 19:18:50.000000000 +0200
@@ -193,11 +193,11 @@
             names.append(symbol_name)
         return names
 
-    def __init__(self, val=0):
+    def __init__(self, val=None):
         self._data = fexpr_struct()
         self._ref = ctypes.byref(self._data)
         libcalcium.fexpr_init(self)
-        if val is not 0:
+        if val is not None:
             typ = type(val)
             if typ is int:
                 b = sys.maxsize
@@ -634,11 +634,11 @@
 
     """
 
-    def __init__(self, val=0):
+    def __init__(self, val=None):
         self._data = qqbar_struct()
         self._ref = ctypes.byref(self._data)
         libcalcium.qqbar_init(self)
-        if val is not 0:
+        if val is not None:
             typ = type(val)
             if typ is int:
                 b = sys.maxsize
@@ -1387,7 +1387,7 @@
 
     """
 
-    def __init__(self, val=0, context=None):
+    def __init__(self, val=None, context=None):
         if context is None:
             self._ctx_python = ctx_default
         else:
@@ -1396,7 +1396,7 @@
         self._data = ca_struct()
         self._ref = ctypes.byref(self._data)
         libcalcium.ca_init(self, self._ctx)
-        if val is not 0:
+        if val is not None:
             typ = type(val)
             if typ is int:
                 b = sys.maxsize
@@ -4290,6 +4290,9 @@
     assert tan(pi*sqrt(2))*tan(pi*sqrt(3)) == (cos(pi*sqrt(5-2*sqrt(6))) - 
cos(pi*sqrt(5+2*sqrt(6))))/(cos(pi*sqrt(5-2*sqrt(6))) + 
cos(pi*sqrt(5+2*sqrt(6))))
     assert log(exp(1j) / exp(-1j)) == 2*i
 
+    v = cos(acos(sqrt(2) - sqrt(3))/3)
+    assert 1 - 90*v**2 + 321*v**4 - 592*v**6 + 864*v**8 - 768*v**10 + 
256*v**12 == 0
+
     def expect_not_implemented(f):
         try:
             v = f()

Reply via email to