add functions for continued-fractions