[gnumeric] OWENT: fix type in a==1 case.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] OWENT: fix type in a==1 case.
- Date: Fri, 12 Apr 2013 12:46:20 +0000 (UTC)
commit 9b126dd016e7486845166b4ec93b92bfa027b7db
Author: Morten Welinder <terra gnome org>
Date: Fri Apr 12 08:46:00 2013 -0400
OWENT: fix type in a==1 case.
ChangeLog | 5 +++++
src/mathfunc.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1330392..b85d11a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-12 Morten Welinder <terra gnome org>
+
+ * src/mathfunc.c (gnm_owent): Fix a==1 special case. Part of
+ #697850.
+
2013-04-11 Morten Welinder <terra gnome org>
* src/parse-util.c (rangeref_parse): Parse Sheet!#REF and return a
diff --git a/src/mathfunc.c b/src/mathfunc.c
index d82ad35..7d3dc11 100644
--- a/src/mathfunc.c
+++ b/src/mathfunc.c
@@ -7071,7 +7071,7 @@ gnm_owent (gnm_float h, gnm_float a)
res = gnm_atan (a) / (2 * M_PIgnum);
else if (a == 1)
res = 0.5 * pnorm (h, 0, 1, TRUE, FALSE) *
- pnorm (h, 0, 1, FALSE, TRUE);
+ pnorm (h, 0, 1, FALSE, FALSE);
else if (a <= 1)
res = gnm_owent_helper (h, a);
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]