Reference

math.c(3caca)

Math.

NAME

math.c - Math.

SYNOPSIS

Functions

int caca_rand (int min, int max)
Generate a random integer within a range. unsigned int caca_sqrt (unsigned int a)
Approximate a square root, using Newton's method to avoid costly floating point calculations.

Detailed Description

Version:

$Id: math.c 195 2003-12-31 14:21:08Z sam $

Author:

Sam Hocevar <[email protected]>

This file contains simple mathematical routines.

Author

Generated automatically by Doxygen for libcaca from the source code.