Started on cf_append, for making fractions whose terms are the result of appending the terms from other fractions. cf_arith.c: Minor: change number of iterations of arithmetic loop from 12 to 30 to avoid premature termination when calculating (for example) phi + (1+sqrt(2)). cf_per.c: Add function new_array, returns finite nonperiodic CF. Now this file needs renamed. cf_between: This file will contain the function between(a, b), which will return the simplest fraction between a and b. between.c: Demo / util program for between(). appendtest.c: Tests for cf_append functions. arraytest.c: Tests for cf_per/new_array functions. surd2.c: Tests for cf_per/new_periodic functions. (surd.c already tests cf_per/new_periodic2.) Makefile: Added new files; use LDFLAGS variable
reserved. So I replaced it with C_INF. Also more makefile improvements.
….. . cf_it also exports e(), which constructs e. (Replace this with e^(2/n) in the future.) Generalized structure of cf_holo to support decimal-digit-producing streams. This needs refactoring. holo and dec should inherit from a common abstract superclass. Added new_dec and related machinery to cf_holo. Fixed bug in debugging output. Added these new features to the demo program. Documentation.
tidier now. Added basic docs for it. Need to mark them up in nroff!