Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

exp(3) [netbsd man page]

EXP(3)							   BSD Library Functions Manual 						    EXP(3)

NAME
exp, expf, exp2, exp2f, expm1, expm1f, -- exponential functions LIBRARY
Math Library (libm, -lm) SYNOPSIS
#include <math.h> double exp(double x); float expf(float x); double exp2(double x); float exp2f(float x); double expm1(double x); float expm1f(float x); DESCRIPTION
The exp() and the expf() functions compute the base e exponential value of the given argument x. The exp2(), and exp2f() functions compute the base 2 exponential of the given argument x. The expm1() and the expm1f() functions computes the value exp(x)-1 accurately even for tiny argument x. RETURN VALUES
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. SEE ALSO
math(3) STANDARDS
The exp() functions conform to ANSI X3.159-1989 (``ANSI C89''). The exp2(), exp2f(), expf(), expm1(), and expm1f() functions conform to ISO/IEC 9899:1999 (``ISO C99''). HISTORY
The exp() functions appeared in Version 6 AT&T UNIX. The expm1() function appeared in 4.3BSD. BSD
September 13, 2011 BSD

Check Out this Related Man Page

EXP(3)							   BSD Library Functions Manual 						    EXP(3)

NAME
exp, expf, exp2, exp2f, expm1, expm1f, -- exponential functions LIBRARY
Math Library (libm, -lm) SYNOPSIS
#include <math.h> double exp(double x); float expf(float x); double exp2(double x); float exp2f(float x); double expm1(double x); float expm1f(float x); DESCRIPTION
The exp() and the expf() functions compute the base e exponential value of the given argument x. The exp2(), and exp2f() functions compute the base 2 exponential of the given argument x. The expm1() and the expm1f() functions computes the value exp(x)-1 accurately even for tiny argument x. RETURN VALUES
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. SEE ALSO
math(3) STANDARDS
The exp() functions conform to ANSI X3.159-1989 (``ANSI C89''). The exp2(), exp2f(), expf(), expm1(), and expm1f() functions conform to ISO/IEC 9899:1999 (``ISO C99''). HISTORY
The exp() functions appeared in Version 6 AT&T UNIX. The expm1() function appeared in 4.3BSD. BSD
September 13, 2011 BSD
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

reg exp question

Hi, Should be a difference between ']]*' and ']+' ? I use them in bash with sed and grep. Thanks (1 Reply)
Discussion started by: ynir
1 Replies

2. What is on Your Mind?

Interested in bike riding !!! share your exp..

Hi folks, i know its totally diff topic on this community ... :-) Are you interested in bike riding !!! if yes , what is your fav bike ? what bike are you having now at your home ? what is your longest ride ? I have a indian made 200cc bike .. most of the time, i... (2 Replies)
Discussion started by: vparunkumar
2 Replies

3. Shell Programming and Scripting

Sorting exponential notation

Hi, I just want to sort my file with exponential notation. For example: 1;2;4;s 1;5e-01;4;s 1;1;4;s I used sort -gk2, but it does not sort in the correct way. What's wrong? (15 Replies)
Discussion started by: NilsMueller
15 Replies

4. UNIX for Advanced & Expert Users

list length

Hello, How can I change this code a=$(egrep "exp" $logFiles -oh); aCount=$(egrep "exp" $logFiles -oh| wc -l); to something like this a=$(egrep "exp" $logFiles -oh); aCount = $a| wc -l What I mean I do not want to execute the egrep twice because it takes a lot of time Regards (6 Replies)
Discussion started by: fdc2suxs
6 Replies

5. Shell Programming and Scripting

Exponential issues

I have the below awk command to search a row and find the line number. It returns the value in exponential. I understand we can use the print "%.0f\n" to convert the exponential. I wanted to have this in my awk command. Can anyone advise bnd=`awk '/^GS/{p=NR}$0~"^ABC.*\\*"k{f=1}/^GE/&&f{print... (3 Replies)
Discussion started by: Muthuraj K
3 Replies