@@ -150,6 +150,20 @@ namespace qlibs {
150150 return ( classification::FFP_NORMAL == classify ( x ) );
151151 }
152152
153+ /* *
154+ * @brief Composes a floating point value with the magnitude of @a mag
155+ * and the sign of @a sgn
156+ * @param[in] mag floating-point value.
157+ * @param[in] sgn floating-point value
158+ * @return The floating point value with the magnitude of @a mag and the
159+ * sign of @a sgn is returned. If @a mag is @c nan, then @c nan with the
160+ * sign of @a sgn is returned. if @c sgn is @c -0, the result is only
161+ * negative if the implementation supports the signed zero consistently
162+ * in arithmetic operations.
163+ */
164+ float copysign ( float mag,
165+ float sgn );
166+
153167 /* *
154168 * @brief Computes the sign function ( signum function).
155169 * @param[in] x The floating point value
@@ -386,6 +400,17 @@ namespace qlibs {
386400 */
387401 float exp ( float x );
388402
403+ /* *
404+ * @brief Returns @a e raised to the given power minus one <tt>e^x-1</tt>
405+ * power @a x.
406+ * @param[in] x The floating point value
407+ * @return Upon successful completion, the base-e exponential of @a x minus
408+ * one <tt>e^(x)-1</tt> is returned. If the range validation fails due
409+ * to overflow, @c +inf is
410+ * returned.
411+ */
412+ float expm1 ( float x );
413+
389414 /* *
390415 * @brief Computes the value of 10 raised to the power of @a x.
391416 * @param[in] x The floating point value
@@ -404,6 +429,17 @@ namespace qlibs {
404429 */
405430 float log ( float x );
406431
432+ /* *
433+ * @brief Computes the natural (base e) logarithm of 1 plus the given
434+ * number @a x @c ln(1+x) .
435+ * @param[in] x The floating point value
436+ * @return Upon successful completion, the natural (base-e) logarithm
437+ * of 1 plus the given number @a x @c ln(1+x) is returned. If the domain
438+ * validation fails, a @c nan value is returned. If the pole validation
439+ * fails, @c -inf is returned.
440+ */
441+ float log1p ( float x );
442+
407443 /* *
408444 * @brief Computes the common (base-10) logarithm of @a x.
409445 * @param[in] x The floating point value
0 commit comments