exp(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).

   
   Interface              Attribute      Value   
   
   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/pcre32_compile2.3.html
pcre32_compile2(3) Perl-compatible regular expressions......
This function compiles a regular expression into an internal form. It is the same as pcre[16|32]_compile(), except for the addition of the errorcodeptr argument

manpages/eyuvtoppm.1.html
eyuvtoppm(1) - convert a Berkeley YUV file to a PPM file....
This program is part of Netpbm(1) eyuvtoppm reads a Berkeley Encoder YUV (not the same as Abekas YUV) file as input and produces a PPM image on Standard Output.

manpages/aseqnet.1.html
aseqnet(1) - ALSA sequencer connectors over network.........
aseqnet is an ALSA sequencer client which sends and receives event packets over network. Suppose two hosts connected by network, hostA as a server and hostB as

manpages/XrmEnumerateDatabase.3.html
XrmEnumerateDatabase(3) - enumerate resource database entrie
The XrmEnumerateDatabase function calls the specified procedure for each resource in the database that would match some completion of the given name/class resou

manpages/unicode_stop.1.html
unicode_stop(1) - revert keyboard and console from unicode m
The unicode_stop command will more-or-less undo the effect of unicode_start. It puts the keyboard in ASCII (XLATE) mode, and clears the console UTF-8 mode. SEE

manpages/strcat.3.html
strcat(3) - concatenate two strings - Linux manual page.....
The strcat() function appends the src string to the dest string, overwriting the terminating null byte (\0) at the end of dest, and then adds a terminating null

manpages/XkbGetKeyModifierMap.3.html
XkbGetKeyModifierMap(3) - Update the modifier map for one or
The modmap entry of the client map is an array, indexed by keycode, specifying the real modifiers bound to a key. Each entry is a mask composed of a bitwise inc

manpages/ber_put_int.3.html
ber_put_int(3) - OpenLDAP LBER simplified Basic Encoding Rul
These routines provide a subroutine interface to a simplified implementation of the Basic Encoding Rules of ASN.1. The version of BER these routines support is

manpages/chkstat.8.html
chkstat(8) - Tool to check and set file permissions.........
The program /usr/bin/chkstat is a tool to check and set file permissions. chkstat can either operate in system mode or on individually specified permission file

manpages/setpriority.2.html
setpriority(2) - get/set program scheduling priority........
setpriority.2 - The scheduling priority of the process, process group, or user, as indicated by which and who is obtained with the getpriority() call and set wi

manpages/XIUngrabKeycode.3.html
XIUngrabKeycode(3) - grab/ungrab buttons or keys (Man Page)
XIGrabButton and XIGrabKeycode establishes a passive grab. The modifier device for a button grab is the paired master device if deviceid specifies a master poin

manpages/NetSNMP::agent.3pm.html
NetSNMP::agent(3pm) - Perl extension for the net-snmp agent.
This module implements an API set to make a SNMP agent act as a snmp agent, a snmp subagent (using the AgentX subagent protocol) and/or embedded perl-APIs direc





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