[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
- [gnuastro-commits] master updated (a5aeb7d -> 3339b92), Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 3e05560 003/125: Corrected bad use of type in MakeProfiles, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 847d97e 007/125: Minor header inclusion corrections, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 591461c 015/125: Corrected occurance of "remainder" with modulo,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 1ea9ea2 009/125: Data structure mmap information updated, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 531c263 008/125: Operators treated as macros, not string, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master ff9258a 006/125: Arithmetic with internal type conversion, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 5336d5c 024/125: Small but important corrections, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master c2fcb3e 020/125: Absolute value operator in gal_data_arithmetic, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master fdb6183 019/125: Where operator implemented in gal_data_arithmetic, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master 493bc6f 001/125: Defined new gnuastro/data.h header, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master c6462d1 016/125: Type conversion operators in Arithmetic, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master c10c4be 002/125: Moved type code and alloc functions into data.h, Mohammad Akhlaghi, 2017/04/23
- [gnuastro-commits] master a4c5b9d 012/125: Binary operator arithmetic works on uncompiled types, Mohammad Akhlaghi, 2017/04/23