AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
· '-... _ _ / . f) · (� "-- ·
EXP ( 3M ) EXP ( 3M ) NAME exp, log, loglO, pow, sqrt - exponential, logarithm, power, square root functions SYNOPSIS #include double exp (x) double x; double log (x) double x; double loglO (x) double x; double pow (x, y) double x, y; double sqrt (x) double x; DESCRIPTION Exp returns ex 0 Log returns the natural logarithm of x. The value of x must be positive. Logl 0 returns the logarithm base ten of x. The value of x must be positive. Pow returns xY 0 The values of x and y may not both be zero. If x is non-positive, y must be an integer. Sqrt returns the square root of x. The value of x may not be negative. DIAGNOSTICS Exp returns HUGE when the correct value would overflow, and sets errno to ERANGE. Log and loglO return 0 and set errno to EDOM when x is nonpositive. An error message is printed on the standard error output. Pow returns 0 and sets errno to EDOM when x is non-positive and y is not an integer, or when x and y are both zero. In these cases a message indicating DOMAIN error is printed on the standard error output. When the correct value for pow would overflow, pow returns HUGE and sets errno to ERANGE. Sqrt returns 0 and sets errno to EDOM when x is negative. A message indicating DOMAIN error is printed on the standard error output. These error-handling procedures may be changed with the function matherr(3M). SEE ALSO hypot(3M), matherr(3M), sinh(3M). - 1 -
- Page 783 and 784: WAIT ( 2 ) WAIT ( 2 ) NAME wait - w
- Page 785 and 786: WRITE(2) WRITE (2) NAME write - wri
- Page 787 and 788: INTR0 ( 3 ) INTR0 ( 3 ) NAME intro
- Page 789: A64L ( 3C ) A64L ( 3C ) NAME a641,
- Page 793: ABS (3C) ABS (3C) NAME abs - return
- Page 797: ATOF ( 3C ) ATOF ( 3C ) NAME atof -
- Page 800 and 801: ·�
- Page 803: CLOCK( 3C ) CLOCK( 3C ) NAME clock
- Page 806 and 807: J ··- � . ..._ __ .·
- Page 809: CTERMID ( 3S ) CTERMID ( 3S ) NAME
- Page 812 and 813: CTIME (3C) CTIME(3C) The external l
- Page 815 and 816: CURSES ( 3 ) CURSES ( 3 ) NAME curs
- Page 817 and 818: CUSERID ( 3S ) CUSERID ( 3S ) NAME
- Page 819 and 820: DIAL (3C) DIAL(3C) NAME dial - esta
- Page 821 and 822: DRAND48 ( 3C ) DRAND48 ( 3C ) NAME
- Page 823 and 824: DRAND48 ( 3C ) DRAND48 ( 3C ) have
- Page 825: ECVT (3C) ECVT (3C) NAME ecvt, fcvt
- Page 829 and 830: EPRINTF ( 3T ) ( AT&T UNIX PC only
- Page 831: ERF (3M) ERF (3M) NAME erf1 erfc -
- Page 837: FERROR (3S) FERROR (3S) NAME ferror
- Page 841 and 842: FOPEN(3S) FOPEN (3S) NAME fopen, fr
- Page 843 and 844: FORM ( 3T ) ( AT&T UNIX PC only ) F
- Page 845 and 846: FORM (3T) (AT&T UNIX PC only ) fiel
- Page 847 and 848: FORM (3T) }; (AT&T UNIX PC only ) F
- Page 849: FREAD ( 3S ) FREAD ( 3S ) NAME frea
- Page 853: FSEEK ( 3S ) FSEEK ( 3S ) NAME fsee
- Page 857 and 858: GAMMA ( 3M ) GAMMA ( 3M ) NAME gamm
- Page 859 and 860: GETC ( 3S ) GETC ( 3S ) NAME getc,
- Page 861: GETCWD ( 3C } GETCWD ( 3C ) NAME ge
- Page 865 and 866: GETGRENT ( 3C ) GETGRENT ( 3C ) NAM
- Page 867: GETLOGIN ( 3C ) GETLOGIN ( 3C ) NAM
- Page 870 and 871: GETOPT (3C) } SEE ALSO getopt(l). e
- Page 873 and 874: GETPENT (3) (AT&T UNIX PC only ) GE
- Page 875: GETPW ( 3C ) GETPW ( 3C ) NAME getp
- Page 878 and 879: GETPWENT ( 3C ) GETPWENT ( 3C ) par
- Page 881 and 882: GETUT ( 3C ) GETUT ( 3C ) NAME getu
EXP ( 3M ) EXP ( 3M )<br />
NAME<br />
exp, log, loglO, pow, sqrt - exponential, logarithm, power, square<br />
root functions<br />
SYNOPSIS<br />
#include <br />
double exp (x)<br />
double x;<br />
double log (x)<br />
double x;<br />
double loglO (x)<br />
double x;<br />
double pow (x, y)<br />
double x, y;<br />
double sqrt (x)<br />
double x;<br />
DESCRIPTION<br />
Exp returns ex 0<br />
Log returns the natural logarithm of x. The value of x must be<br />
positive.<br />
Logl 0 returns the logarithm base ten of x. The value of x must<br />
be positive.<br />
Pow returns xY 0 The values of x and y may not both be zero. If<br />
x is non-positive, y must be an integer.<br />
Sqrt returns the square root of x. The value of x may not be<br />
negative.<br />
DIAGNOSTICS<br />
Exp returns HUGE when the correct value would overflow, and<br />
sets errno to ERANGE.<br />
Log and loglO return 0 and set errno to EDOM when x is nonpositive.<br />
An error message is printed on the standard error output.<br />
Pow returns 0 and sets errno to EDOM when x is non-positive<br />
and y is not an integer, or when x and y are both zero. In these<br />
cases a message indicating DOMAIN error is printed on the standard<br />
error output. When the correct value for pow would<br />
overflow, pow returns HUGE and sets errno to ERANGE.<br />
Sqrt returns 0 and sets errno to EDOM when x is negative. A<br />
message indicating DOMAIN error is printed on the standard error<br />
output.<br />
These error-handling procedures may be changed with the function<br />
matherr(3M).<br />
SEE ALSO<br />
hypot(3M), matherr(3M), sinh(3M).<br />
- 1 -