[goffice] Complex: to go_complex_powl accuracy.



commit 5ef293c38430c34a49077f755653a94bbc078c15
Author: Morten Welinder <terra gnome org>
Date:   Tue Feb 2 20:15:45 2016 -0500

    Complex: to go_complex_powl accuracy.

 ChangeLog                 |    5 +++++
 NEWS                      |    2 ++
 goffice/math/go-complex.c |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 179e0fc..9a175d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-02-02  Morten Welinder  <terra gnome org>
+
+       * goffice/math/go-complex.c (go_complex_powl): Fix real case
+       accuracy.
+
 2016-01-29  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-axis.c (gog_axis_view_size_allocate): fixed axis
diff --git a/NEWS b/NEWS
index 09c5566..71dc8d7 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ Andreas:
 
 Jean:
        * Add title to axis lines. [#760675]
+Morten:
+       * Fix go_complex_powl accuracy for real case.
 
 --------------------------------------------------------------------------
 goffice 0.10.26:
diff --git a/goffice/math/go-complex.c b/goffice/math/go-complex.c
index 987bb02..f1765be 100644
--- a/goffice/math/go-complex.c
+++ b/goffice/math/go-complex.c
@@ -326,7 +326,7 @@ SUFFIX(go_complex_pow) (COMPLEX *dst, COMPLEX const *a, COMPLEX const *b)
 {
        if (b->im == 0) {
                if (SUFFIX(go_complex_real_p) (a) && a->re >= 0) {
-                       SUFFIX(go_complex_init) (dst, pow (a->re, b->re), 0);
+                       SUFFIX(go_complex_init) (dst, SUFFIX(pow) (a->re, b->re), 0);
                        return;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]