11.001001000011111101101010100010001000 Arithmazium
Home

Math functions

Paranoia uses pseudonyms for its utility math functions, so that any local naming conventions can be resolved within these functions. The situation in ParaPy is straightforward.

The log() function is the natural logarithm. It always appears in the form \( log(x) / log(b) \) to compute the log of \(x\) to the base \(b\).

def fabs(x):
    return math.fabs(x)


def floor(x):
    return math.floor(x)


def log(x):
    """Return the natural log of the argument."""
    return math.log(x)


def pow(x, y):
    """Return x**y."""
    return math.pow(x, y)


def sqrt(x):
    return math.sqrt(x)


Home