gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 591461c 015/125: Corrected occurance of "remai


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 591461c 015/125: Corrected occurance of "remainder" with modulo
Date: Sun, 23 Apr 2017 22:36:27 -0400 (EDT)

branch: master
commit 591461c8b4848c0e45a7dde4561b7dcdcd1a6e7e
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Corrected occurance of "remainder" with modulo
    
    The main name for the `%' operator is "modulo" (according to Wikipedia).
    However, in my first implementation, I used the term "remainder" in the
    macros and book. Later, it was corrected, but apparently one occurance in a
    macro and two occurances in the book slipped through my fingers. They are
    now corrected.
---
 bin/arithmetic/arithmetic.c | 2 +-
 doc/gnuastro.texi           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/arithmetic/arithmetic.c b/bin/arithmetic/arithmetic.c
index ffc94a5..935207e 100644
--- a/bin/arithmetic/arithmetic.c
+++ b/bin/arithmetic/arithmetic.c
@@ -102,7 +102,7 @@ reversepolish(struct imgarithparams *p)
           else if (!strcmp(token->v, "/" ))
             { op=GAL_DATA_OPERATOR_DIVIDE;        nop=2;  }
           else if (!strcmp(token->v, "%" ))
-            { op=GAL_DATA_OPERATOR_REMAINDER;     nop=2;  }
+            { op=GAL_DATA_OPERATOR_MODULO;        nop=2;  }
 
           /* Mathematical Operators. */
           else if (!strcmp(token->v, "abs"))
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index b84329c..1900f23 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -7146,8 +7146,8 @@ the multiplication sign (for example @command{"*"}).
 Division, so address@hidden 5 /}'' is equivalent to @mymath{4/5}.
 
 @item %
-Remainder, so address@hidden 2 %}'' is equivalent to @mymath{1}. Note that
-the remainder operator only works on integer types.
+Modulo (remainder), so address@hidden 2 %}'' is equivalent to
address@hidden Note that the modulo operator only works on integer types.
 
 @item abs
 Absolute value of first operand, so address@hidden abs}'' is



reply via email to

[Prev in Thread] Current Thread [Next in Thread]