File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man3 / exp.3m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

.TH EXP 3M  "10 December 1984"
.SH NAME
exp, log, log10, pow, sqrt \- exponential, logarithm, power, square root
.SH SYNOPSIS
.nf
.PP
.B fortran float exp(x)
.B float x;
.PP
.B fortran float log(x)
.B float x;
.PP
.B fortran float sqrt(x)
.B float x;
.PP
.B #include <math.h>
.PP
.B double exp(x)
.B double x;
.PP
.B double log(x)
.B double x;
.PP
.B double log10(x)
.B double x;
.PP
.B double pow(x, y)
.B double x, y;
.PP
.B double sqrt(x)
.B double x;
.fi
.SH DESCRIPTION
.I Exp
returns the exponential function of 
.I x.
.PP
.I Log
returns the natural logarithm of 
.IR x ;
.I log10
returns the base 10 logarithm.
.PP
.I Pow
returns
.I  x\u\s8y\s10\d.
.PP
.I Sqrt
returns the square root of 
.I x.
.PP
If
.I exp,
.I log
or
.I sqrt
is declared to be
.I fortran
.I float,
the single-precision floating point opcode
.I expf, logf
or
.I sqrtf
will be generated instead of a call to the respective
double-precision function.
.SH SEE ALSO
hypot(3M),
sinh(3M),
intro(3M)
.SH DIAGNOSTICS
.I Exp
and
.I pow
return a huge value when the correct value would overflow;
.I errno
is set to ERANGE.
.I Pow
returns 0 and sets
.I errno
to EDOM when the second argument is negative and non-integral and
when both arguments are 0.
.PP
.I Log
returns 0 when
.I x
is zero or negative;
.I errno
is set to EDOM.
.PP
.I Sqrt
returns 0 when 
.I x
is negative;
.I errno
is set to EDOM.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.