# exp(3) [opendarwin man page]

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

NAME
exp, exp2, expm1 -- exponential functions

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() function computes e**x, the base-e exponential of x.

The exp2() function computes 2**x, the base-2 exponential of x.

The expm1() function computes the base-e exponential of x , minus 1 accurately even for very small values of x.

SPECIAL VALUES
exp(+-0) and exp2(+-0) return 1.

exp(-infinity) and exp2(-infinity) return +0.

exp(+infinity) and exp2(+infinity) return +infinity.

expm1(+-0) returns +-0.

expm1(-infinity) returns -1.

expm1(+infinity) returns +infinity.

For all these functions, a range error occurs if the magnitude of x is too large.

math(3), infnan(3)

STANDARDS
The exp() , expf() , exp2() , exp2f() , expm1() , and expm1f() functions conform to ISO/IEC 9899:1999(E).

4th Berkeley Distribution					 January 30, 2003					 4th Berkeley Distribution```

## 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.

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

## File/directory information......

Basically i have done created the script below, and it functions ok, it prints the access rights the user has. But i need it to print the group permissions, and other permissions, it would also be helpful if i could print the permissions in numeric form aswell, if it is possible. I have looked in...

## Pop up dialog box on remote computers

I need to send out messages to over 100 clients in my sector. I want it to pop up a dialog box letting them know to save work and log out. I have the reboot script created just need the warning please. Thanks

## Script on pattern matching and print lines and export to excel

Hi Friends, I am working on a script.. Looking forward for your expert help..... My requirement is: I have a text file where, need to search equip * RTF or end of line with RTF ,once this pattern is found then print 2nd line, 6th line, 7th line to a different file. For Ex: equip 1...

## need script for passwd , can't use expect tool

Hi , as others users here , i'm searching for a script which can automate "passwd" dialog . I saw threads about "expect tool" but on my platforms , "C" product isn't installed and i'm not the admin so i can't install it. is there another way to do it , with a "simple" shell script ??? ...

## Grep expression between double quotes

I need a quick expression to be able to pull out all the data in a text file that looks like "http:// some random url etc" So it should grab any string that begins with "http:// and ends with " There are other double quotes in the file but I only want the ones that start with "http:// and the...

## AWK Script Issue insert newline for a regular expression match

Hi , I am having an issue with the Awk script to insert newline for a regular expression match Having a file like this FILE1 #################### RXOER , RXERA , RXERC , RXERD .RXEA(RXBSN), RXERD , REXCD input RXEGT buffer RXETRY ####################### Want to match the RXE...

## Bits - The Unix and Linux Forums (Experimental) Virtual Currency

Hello. I've searched the site but can't find a link to what the "Bits" and "bank account" is on my user profile. Can someone link me or briefly explain?

## Tilde prefix returns invalid home directory.

I am trying to find the home directory of users on a UNIX (Solaris/AIX) box using echo ~usernameThis does return the home directory for all valid users. For some reason this command also outputs home directory which are non-existent for few users who seem not to have logon access to that...

## awk command not working as expected

Following one line of awk code removes first 3 characters from each line but when I run the same code on another linux platform it doesn't work and only prints blank lines for each record. Can anyone please explain why this doesn't work?

## Noob trying to improve

Hi everyone! This is my first post here, I hope that I will not already be violating any rule! I also would like to apologize in advance as my post will definitely be a noob post... please have patience and faith :rolleyes:! Now that I have set the ground rules :D:D, my objective is trying...

## What editor does everyone use?

I was looking through the topics and I wasn't sure if this was the best place to post this question: I was wondering, out of curiosity, which software everyone was using to code their scripts in. I do mostly sh/ksh and my favorite has always been EditPlus because it is small, fast, yet powerful....