[gnumeric] Documentation: improve samples for ACOSH and ATANH.



commit 290c65be84bb21118accaea7cf3f385773965393
Author: Morten Welinder <terra gnome org>
Date:   Thu Mar 19 08:35:06 2015 -0400

    Documentation: improve samples for ACOSH and ATANH.
    
    I.e., stay within the domain.

 plugins/fn-math/ChangeLog   |    5 +++++
 plugins/fn-math/functions.c |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/plugins/fn-math/ChangeLog b/plugins/fn-math/ChangeLog
index 0a528ad..7625ccf 100644
--- a/plugins/fn-math/ChangeLog
+++ b/plugins/fn-math/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-19  Morten Welinder  <terra gnome org>
+
+       * functions.c (gnumeric_acosh): Improve samples.
+       (gnumeric_atanh): Ditto.
+
 2015-03-04  Morten Welinder <terra gnome org>
 
        * Release 1.12.21
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index cb428e1..6b0d001 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -268,8 +268,8 @@ static GnmFuncHelp const help_acosh[] = {
        { GNM_FUNC_HELP_NAME, F_("ACOSH:the hyperbolic arc cosine of @{x}")},
        { GNM_FUNC_HELP_ARG, F_("x:number")},
        { GNM_FUNC_HELP_EXCEL, F_("This function is Excel compatible.") },
-       { GNM_FUNC_HELP_EXAMPLES, "=ACOSH(0.1)" },
-       { GNM_FUNC_HELP_EXAMPLES, "=ACOSH(-0.1)" },
+       { GNM_FUNC_HELP_EXAMPLES, "=ACOSH(1.1)" },
+       { GNM_FUNC_HELP_EXAMPLES, "=ACOSH(6.1)" },
        { GNM_FUNC_HELP_SEEALSO, "ACOS,ASINH"},
        { GNM_FUNC_HELP_END}
 };
@@ -399,7 +399,7 @@ static GnmFuncHelp const help_atanh[] = {
        { GNM_FUNC_HELP_EXCEL, F_("This function is Excel compatible.") },
        { GNM_FUNC_HELP_NOTE, F_("If the absolute value of @{x} is greater than 1.0, ATANH returns #NUM!") },
        { GNM_FUNC_HELP_EXAMPLES, "=ATANH(0.5)" },
-       { GNM_FUNC_HELP_EXAMPLES, "=ATANH(1)" },
+       { GNM_FUNC_HELP_EXAMPLES, "=ATANH(0.9)" },
        { GNM_FUNC_HELP_SEEALSO, "ATAN,COS,SIN"},
        { GNM_FUNC_HELP_END}
 };


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