Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pow(III) — UNIX 6th Edition 1.3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exp (III)

log (III)

POW(III)  −  PWB/UNIX 4/30/73

NAME

pow − floating exponentiation

SYNOPSIS

movfx,fr0
movfy,fr1
jsrpc,pow

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

DESCRIPTION

Pow returns the value of xy (in fr0).  "Pow(0.0, y)" is 0 for any y.  "Pow(−x, y)" returns a result only if y is an integer. 

SEE ALSO

exp (III), log (III)

DIAGNOSTICS

The carry bit is set on return in case of overflow, pow(0.0, 0.0), or pow(−x, y) for non-integral y.  From C there is no diagnostic. 

BUGS

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