Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exp.bsd(3M) — Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hypot(3M)

sinh(3M)

EXP(3M)

NAME

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

USAGE

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

DIAGNOSTICS

When the correct value would overflow, exp and pow return HUGE and sets errno to ERANGE. 

Pow returns zero and sets errno to EDOM when the second argument is negative and not an integer, and when both arguments are zero. 

Log returns zero when x is zero or negative; errno is set to EDOM. 

Sqrt returns zero when x is negative; errno is set to EDOM. 

RELATED INFORMATION

hypot(3M), sinh(3M). 

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