Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exp(3M) — SunOS 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hypot(3M)

sinh(3M)

intro(2)

EXP(3M)  —  MATHEMATICAL FUNCTIONS

NAME

exp, log, log10, pow, sqrt − exponential, logarithm, power, square root

SYNOPSIS

#include <math.h>

double exp(x)
double x;

double log(x)
double x;

double log10(x)
double x;

double pow(x, y)
double x, y;

double sqrt(x)
double x;

DESCRIPTION

Exp returns the exponential function of x. 

Log returns the natural logarithm of x; log10 returns the base 10 logarithm. 

Pow returns xy. 

Sqrt returns the square root of x. 

SEE ALSO

hypot(3M), sinh(3M), intro(2)

DIAGNOSTICS

These functions handle exceptional arguments in the spirit of IEEE standard P754 for binary floating point arithmetic.  sqrt(x) for x < 0, log(x) for x < 0, log10(x) for x < 0, pow(0.0,0.0), pow(infinity,0.0), and pow(1.0,infinity) are invalid, as is pow(x,y) if x < 0 and y is not an integer value or infinite value; in all these cases NaN function values are returned and errno is set to EDOM. 

Sun Release 2.0  —  Last change: 19 January 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026