[gnumeric] Docs: add a few more examples



commit 4baa6ed4d80bd3dd2f816b9960457b237ec1f759
Author: Morten Welinder <terra gnome org>
Date:   Thu Nov 23 21:41:48 2017 -0500

    Docs: add a few more examples

 plugins/fn-financial/functions.c |    2 ++
 plugins/fn-math/functions.c      |    1 +
 plugins/fn-stat/functions.c      |    1 +
 3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/fn-financial/functions.c b/plugins/fn-financial/functions.c
index 5761bc1..04263da 100644
--- a/plugins/fn-financial/functions.c
+++ b/plugins/fn-financial/functions.c
@@ -387,6 +387,7 @@ static GnmFuncHelp const help_accrint[] = {
                                 " and @{settlement}.") },
        FREQ_HELP,
        GNM_DATE_BASIS_HELP
+       { GNM_FUNC_HELP_EXAMPLES, "=ACCRINT(DATE(2008,3,1),DATE(2008,8,31),DATE(2008,5,1),10%,1000,2,0)" },
         { GNM_FUNC_HELP_SEEALSO, "ACCRINTM"},
        { GNM_FUNC_HELP_END }
 };
@@ -454,6 +455,7 @@ static GnmFuncHelp const help_accrintm[] = {
        { GNM_FUNC_HELP_DESCRIPTION, F_("ACCRINTM calculates the accrued interest from @{issue} to 
@{maturity}.") },
        { GNM_FUNC_HELP_NOTE, F_("@{par} defaults to $1000.") },
        GNM_DATE_BASIS_HELP
+       { GNM_FUNC_HELP_EXAMPLES, "=ACCRINTM(DATE(2008,4,1),DATE(2008,6,15),10%,1000,3)" },
         { GNM_FUNC_HELP_SEEALSO, "ACCRINT"},
        { GNM_FUNC_HELP_END }
 };
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index da9490d..7abfc43 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -3322,6 +3322,7 @@ static GnmFuncHelp const help_eigen[] = {
        { GNM_FUNC_HELP_ARG, F_("matrix:a symmetric matrix")},
        { GNM_FUNC_HELP_NOTE, F_("If @{matrix} is not symmetric, matching off-diagonal cells will be averaged 
on the assumption that the non-symmetry is caused by unimportant rounding errors.") },
        { GNM_FUNC_HELP_NOTE, F_("If @{matrix} does not contain an equal number of columns and rows, EIGEN 
returns #VALUE!") },
+       // { GNM_FUNC_HELP_EXAMPLES, "=EIGEN({1,2;3,2})" },
        { GNM_FUNC_HELP_END}
 };
 
diff --git a/plugins/fn-stat/functions.c b/plugins/fn-stat/functions.c
index 3aaf0db..50f454d 100644
--- a/plugins/fn-stat/functions.c
+++ b/plugins/fn-stat/functions.c
@@ -462,6 +462,7 @@ static GnmFuncHelp const help_snorm_dist_range[] = {
        { GNM_FUNC_HELP_DESCRIPTION, F_("This function returns the cumulative probability over a range of the 
standard normal distribution; that is the integral over the probability density function from @{x1} to 
@{x2}.") },
        { GNM_FUNC_HELP_NOTE, F_("If @{x1}>@{x2}, this function returns a negative value.")},
        { GNM_FUNC_HELP_SEEALSO, "NORMSDIST,R.PNORM,R.QNORM,R.DNORM"},
+       { GNM_FUNC_HELP_EXAMPLES, "=SNORM.DIST.RANGE(0.6,0.6+1e-10)" },
        { GNM_FUNC_HELP_END }
 };
 


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