expf(3)


NAME

   exp, expf, expl - base-e exponential function

SYNOPSIS

   #include <math.h>

   double exp(double x);
   float expf(float x);
   long double expl(long double x);

   Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   expf(), expl():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
           || /* Since glibc 2.19: */ _DEFAULT_SOURCE
           || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

DESCRIPTION

   These  functions return the value of e (the base of natural logarithms)
   raised to the power of x.

RETURN VALUE

   On success, these functions return the exponential value of x.

   If x is a NaN, a NaN is returned.

   If x is positive infinity, positive infinity is returned.

   If x is negative infinity, +0 is returned.

   If the result underflows, a range error occurs, and zero is returned.

   If the result overflows, a range error occurs, and the functions return
   +HUGE_VAL, +HUGE_VALF, or +HUGE_VALL, respectively.

ERRORS

   See  math_error(7) for information on how to determine whether an error
   has occurred when calling these functions.

   The following errors can occur:

   Range error, overflow
          errno is set to ERANGE.  An  overflow  floating-point  exception
          (FE_OVERFLOW) is raised.

   Range error, underflow
          errno  is  set to ERANGE.  An underflow floating-point exception
          (FE_UNDERFLOW) is raised.

ATTRIBUTES

   For  an  explanation  of  the  terms  used   in   this   section,   see
   attributes(7).

   ┌──────────────────────┬───────────────┬─────────┐
   │InterfaceAttributeValue   │
   ├──────────────────────┼───────────────┼─────────┤
   │exp(), expf(), expl() │ Thread safety │ MT-Safe │
   └──────────────────────┴───────────────┴─────────┘

CONFORMING TO

   C99, POSIX.1-2001, POSIX.1-2008.

   The variant returning double also conforms to SVr4, 4.3BSD, C89.

SEE ALSO

   cbrt(3), cexp(3), exp10(3), exp2(3), expm1(3), sqrt(3)

COLOPHON

   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at
   https://www.kernel.org/doc/man-pages/.

                              2016-03-15                            EXP(3)


More Linux Commands

manpages/dracut-pre-pivot.service.8.html
dracut-pre-pivot.service(8) runs the dracut hooks before swi
This service runs all dracut hooks before the system switched to the real root. AUTHORS Harald Hoyer SEE ALSO dracut.bootup(7) dracut(8) dracut-pre-pivot.servic

manpages/slk_clear.3ncurses.html
slk_clear(3ncurses) - curses soft label routines (Man Page)
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

manpages/ntpq.1.html
ntpq(1) - standard NTP query program - Linux manual page....
This manual page briefly documents the ntpq command. The [= prog-name =] utility program is used to query NTP servers which implement the standard NTP mode 6 co

manpages/Tcl_SetErrno.3.html
Tcl_SetErrno(3) - manipulate errno to store and retrieve err
Tcl_SetErrno and Tcl_GetErrno provide portable access to the errno variable, which is used to record a POSIX error code after system calls and other operations

manpages/mvwinchnstr.3ncurses.html
mvwinchnstr(3ncurses) - get a string of characters (and attr
These routines return a NULL-terminated array of chtype quantities, starting at the current cursor position in the named window and ending at the right margin o

manpages/msiexec.1.html
msiexec(1) - Wine MSI Installer (Commands - Linux man page)
msiexec is the Wine MSI installer, which is command line compatible with its Microsoft Windows counterpart. INSTALL OPTIONS /i {package|productcode} [property=f

manpages/perlrebackslash.1.html
perlrebackslash(1) - Perl Regular Expression Backslash Seque
The top level documentation about Perl regular expressions is found in perlre. This document describes all backslash and escape sequences. After explaining the

manpages/c++.1.html
c++(1) - GNU project C and C++ compiler - Linux manual page
When you invoke GCC, it normally does preprocessing, compilation, assembly and linking. The overall options allow you to stop this process at an intermediate st

manpages/glMap1d.3gl.html
glMap1d(3gl) - define a one-dimensional evaluator (ManPage)
Evaluators provide a way to use polynomial or rational polynomial mapping to produce vertices, normals, texture coordinates, and colors. The values produced by

manpages/Tk_GetScreenMM.3.html
Tk_GetScreenMM(3) - translate between strings and screen uni
These procedures take as argument a specification of distance on the screen (objPtr or string) and compute the corresponding distance either in integer pixels o

manpages/pts.4.html
pts(4) - pseudoterminal master and slave - Linux man page...
The file /dev/ptmx is a character file with major number 5 and minor number 2, usually of mode 0666 and owner.group of root.root. It is used to create a pseudot

manpages/wadd_wch.3ncurses.html
wadd_wch(3ncurses) - add a complex character and rendition t
The add_wch, wadd_wch, mvadd_wch, and mvwadd_wch functions put the complex character wch into the given window at its current position, which is then advanced.





We can't live, work or learn in freedom unless the software we use is free.