NAME
    cfsim - simplify a value using continued fractions

SYNOPSIS
    cfsim(x)

TYPES
    x		real

    return	real

DESCRIPTION
    Approximate x by using continued fractions to return the closest
    simpler fraction of x.

EXAMPLE
    > print cfsim(1.2345678), cfsim(pi())
    ~1.23456779999981777744 ~3.14159265358979323846

LIMITS
    none

LIBRARY
    NUMBER *qcfappr(NUMBER *x, NULL)

SEE ALSO
    cfappr, cfsim
