[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 4c14ee3 1/2: NEWS: added entry for new operato
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 4c14ee3 1/2: NEWS: added entry for new operator macros to gal_arithmetic |
Date: |
Sun, 21 Feb 2021 20:17:15 -0500 (EST) |
branch: master
commit 4c14ee3c96bdc74f8b7952205bcc64bc4b5ff5f4
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
NEWS: added entry for new operator macros to gal_arithmetic
I forgot to add a notice about these macros in the previous commit that
these macros were added. I also noticed that the comments in
'lib/gnuastro/arithmetic.h' for these operators wasn't too descriptive.
With this commit both have been added.
---
NEWS | 16 ++++++++++++++++
lib/gnuastro/arithmetic.h | 14 +++++++-------
2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/NEWS b/NEWS
index 8bd4219..add50e6 100644
--- a/NEWS
+++ b/NEWS
@@ -57,6 +57,22 @@ See the end of the file for license conditions.
program for selecting a certain sub-set of your FITS files, or sorting
them for example.
+ Library:
+ - New arithmetic operator macros (for the 'gal_arithmetic' function):
+ - GAL_ARITHMETIC_OP_SIN: sine (input in deg).
+ - GAL_ARITHMETIC_OP_COS: cosine (input in deg).
+ - GAL_ARITHMETIC_OP_TAN: tangent (input in deg).
+ - GAL_ARITHMETIC_OP_ASIN: Inverse sine (output in deg).
+ - GAL_ARITHMETIC_OP_ACOS: Inverse cosine (output in deg).
+ - GAL_ARITHMETIC_OP_ATAN: Inverse tangent (output in deg)
+ - GAL_ARITHMETIC_OP_ATAN2: Inverse tangent (with two inputs, out deg).
+ - GAL_ARITHMETIC_OP_SINH: Hyperbolic sine.
+ - GAL_ARITHMETIC_OP_COSH: Hyperbolic cosine.
+ - GAL_ARITHMETIC_OP_TANH: Hyperbolic tangent.
+ - GAL_ARITHMETIC_OP_ASINH: Inverse hyperbolic sine.
+ - GAL_ARITHMETIC_OP_ACOSH: Inverse hyperbolic cosine.
+ - GAL_ARITHMETIC_OP_ATANH: Inverse hyperbolic tangent.
+
** Removed features
** Changed features
diff --git a/lib/gnuastro/arithmetic.h b/lib/gnuastro/arithmetic.h
index 0d543ec..b1719df 100644
--- a/lib/gnuastro/arithmetic.h
+++ b/lib/gnuastro/arithmetic.h
@@ -106,13 +106,13 @@ enum gal_arithmetic_operators
GAL_ARITHMETIC_OP_LOG, /* log() */
GAL_ARITHMETIC_OP_LOG10, /* log10() */
- GAL_ARITHMETIC_OP_SIN, /* sine */
- GAL_ARITHMETIC_OP_COS, /* cosine */
- GAL_ARITHMETIC_OP_TAN, /* tangent */
- GAL_ARITHMETIC_OP_ASIN, /* Inverse sine */
- GAL_ARITHMETIC_OP_ACOS, /* Inverse cosine */
- GAL_ARITHMETIC_OP_ATAN, /* Inverse tangent */
- GAL_ARITHMETIC_OP_ATAN2, /* Inverse tangent (with two inputs). */
+ GAL_ARITHMETIC_OP_SIN, /* sine (input in deg). */
+ GAL_ARITHMETIC_OP_COS, /* cosine (input in deg). */
+ GAL_ARITHMETIC_OP_TAN, /* tangent (input in deg). */
+ GAL_ARITHMETIC_OP_ASIN, /* Inverse sine (output in deg). */
+ GAL_ARITHMETIC_OP_ACOS, /* Inverse cosine (output in deg). */
+ GAL_ARITHMETIC_OP_ATAN, /* Inverse tangent (output in deg). */
+ GAL_ARITHMETIC_OP_ATAN2, /* Inv. atan (preserves quad, out in deg). */
GAL_ARITHMETIC_OP_SINH, /* Hyperbolic sine. */
GAL_ARITHMETIC_OP_COSH, /* Hyperbolic cosine. */
GAL_ARITHMETIC_OP_TANH, /* Hyperbolic tangent. */