[gnumeric] fix formatting of complex function descriptions



commit 95f7e5afc3c6fcab7138f2670e246ea5bd6d5626
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sun Feb 13 12:17:07 2011 -0700

    fix formatting of complex function descriptions
    
    2011-02-13 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* functions.c (help_imsec): fix description formatting
    	(help_imcsc): ditto
    	(help_imcot): ditto
    	(help_imexp): add example

 plugins/fn-complex/ChangeLog   |    7 +++++++
 plugins/fn-complex/functions.c |   12 +++++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/plugins/fn-complex/ChangeLog b/plugins/fn-complex/ChangeLog
index 5c1fe05..1891067 100644
--- a/plugins/fn-complex/ChangeLog
+++ b/plugins/fn-complex/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-13 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* functions.c (help_imsec): fix description formatting
+	(help_imcsc): ditto
+	(help_imcot): ditto
+	(help_imexp): add example
+	
 2011-02-02  Morten Welinder <terra gnome org>
 
 	* Release 1.10.13
diff --git a/plugins/fn-complex/functions.c b/plugins/fn-complex/functions.c
index 062e4fb..8c92ed4 100644
--- a/plugins/fn-complex/functions.c
+++ b/plugins/fn-complex/functions.c
@@ -311,7 +311,7 @@ gnumeric_imtan (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
 static GnmFuncHelp const help_imsec[] = {
         { GNM_FUNC_HELP_NAME, F_("IMSEC:the secant of the complex number @{z}") },
         { GNM_FUNC_HELP_ARG, F_("z:a complex number") },
-        { GNM_FUNC_HELP_DESCRIPTION, F_("secz = 1/cosz.") },
+        { GNM_FUNC_HELP_DESCRIPTION, F_("IMSEC(@{z}) = 1/IMCOS(@{z}).") },
 	{ GNM_FUNC_HELP_NOTE, F_("If @{z} is not a valid complex number, #VALUE! is returned.") },
         { GNM_FUNC_HELP_EXAMPLES, "=IMSEC(\"2-j\")" },
         { GNM_FUNC_HELP_SEEALSO, "IMCSC,IMCOT" },
@@ -338,7 +338,7 @@ gnumeric_imsec (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
 static GnmFuncHelp const help_imcsc[] = {
         { GNM_FUNC_HELP_NAME, F_("IMCSC:the cosecant of the complex number @{z}") },
         { GNM_FUNC_HELP_ARG, F_("z:a complex number") },
-        { GNM_FUNC_HELP_DESCRIPTION, F_("cscz = 1/sinz.") },
+        { GNM_FUNC_HELP_DESCRIPTION, F_("IMCSC(@{z}) = 1/IMSIN(@{z}).") },
 	{ GNM_FUNC_HELP_NOTE, F_("If @{z} is not a valid complex number, #VALUE! is returned.") },
         { GNM_FUNC_HELP_EXAMPLES, "=IMCSC(\"2-j\")" },
         { GNM_FUNC_HELP_SEEALSO, "IMSEC,IMCOT" },
@@ -364,9 +364,10 @@ gnumeric_imcsc (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
 static GnmFuncHelp const help_imcot[] = {
         { GNM_FUNC_HELP_NAME, F_("IMCOT:the cotangent of the complex number @{z}") },
         { GNM_FUNC_HELP_ARG, F_("z:a complex number") },
-        { GNM_FUNC_HELP_DESCRIPTION, F_("cotz = cosz/sinz.") },
+        { GNM_FUNC_HELP_DESCRIPTION, F_("IMCOT(@{z}) = IMCOS(@{z})/IMSIN(@{z}).") },
 	{ GNM_FUNC_HELP_NOTE, F_("If @{z} is not a valid complex number, #VALUE! is returned.") },
-        { GNM_FUNC_HELP_EXAMPLES, "=IMCOT(\"2-j\")" },
+        { GNM_FUNC_HELP_EXAMPLES, "=IMCOT(\"2-i\")" },
+        { GNM_FUNC_HELP_EXAMPLES, "=IMCOT(\"2+j\")" },
         { GNM_FUNC_HELP_SEEALSO, "IMSEC,IMCSC" },
         { GNM_FUNC_HELP_END}
 };
@@ -392,7 +393,8 @@ static GnmFuncHelp const help_imexp[] = {
         { GNM_FUNC_HELP_ARG, F_("z:a complex number") },
 	{ GNM_FUNC_HELP_NOTE, F_("If @{z} is not a valid complex number, #VALUE! is returned.") },
 	{ GNM_FUNC_HELP_EXCEL, F_("This function is Excel compatible.") },
-        { GNM_FUNC_HELP_EXAMPLES, "=IMEXP(\"2-j\")" },
+        { GNM_FUNC_HELP_EXAMPLES, "=IMEXP(\"2-i\")" },
+        { GNM_FUNC_HELP_EXAMPLES, "=IMEXP(\"2+j\")" },
         { GNM_FUNC_HELP_SEEALSO, "IMLN" },
         { GNM_FUNC_HELP_END}
 };



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