exp2(3) - NetBSD Manual Pages

Command: Section: Arch: Collection:  
EXP(3)                  NetBSD Library Functions Manual                 EXP(3)

exp, expf, expl, exp2, exp2f, exp2l, expm1, expm1f expm1l -- exponential functions
Math Library (libm, -lm)
#include <math.h> double exp(double x); float expf(float x); long double expf(long double x); double exp2(double x); float exp2f(float x); long double exp2l(long double x); double expm1(double x); float expm1f(float x); long double expm1l(long double x);
The exp(), expf(), and expl() functions compute the base e exponential value of the given argument x. The exp2(), exp2f(), and exp2l() functions compute the base 2 exponential of the given argument x. The expm1(), expm1f() and expm1l() functions compute the value exp(x)-1 accurately even for tiny argument x.
These functions will return the appropriate computation unless an error occurs or an argument is out of range. The functions exp() and expm1() detect if the computed value will overflow, set the global variable errno to ERANGE and cause a reserved operand fault on a VAX.
The exp() function conforms to ANSI X3.159-1989 (``ANSI C89''). The exp2(), exp2f(), exp2l(), expf(), expl(), expm1(), expm1f(), and expm1l() functions conform to ISO/IEC 9899:1999 (``ISO C99'').
The exp() functions appeared in Version 1 AT&T UNIX. The expm1() func- tion appeared in 4.3BSD. NetBSD 10.99 January 24, 2024 NetBSD 10.99
Powered by man-cgi (2024-03-20). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.