Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

sqrt(3)  —  Subroutines

NAME

sqrt, cbrt − Square and cube root functions

LIBRARY

Math Library (libm.a)

SYNOPSIS

#include <math.h>

double sqrt   (double x);
float  sqrtf  (float  x);
double cbrt   (double y);
float  cbrtf  (float  y);

DESCRIPTION

sqrt() and sqrtf() compute the rounded square root of x.  For platforms supporting a signed zero, sqrt (-0) = 0. 

cbrt() and cbrtf() return the rounded cube root of y. 

Function Exceptional Argument Routine Behavior
sqrt(), sqrtf() x < 0 invalid argument

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