16-4. Formulas for Other Difficult Functions

Let us have a closer look at what Willans and Wormell have done. We postulate the rules below as defining what we mean by the class of functions that can be represented by “formulas,” which we will call “formula functions.” Here, is shorthand for x1, x2, …, xn for any n ≥ 1. The domain of values is the integers … −2, −1, 0, 1, 2, ….

  1. The constants … −1, 0, 1, … are formula functions.

  2. The projection functions f() = xi, for 1 ≤ in, are formula functions.

  3. The expressions x + y, xy, and xy are formula functions, if x and y are.

  4. The class of formula functions is closed under composition (substitution). That is, f(g1(), g2(), …, gm()) is a formula function if f and gi are, for i = 1, …, m

Get Hacker's Delight now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.