Prev Index Next

Interp

With tracing

With tracing

Notes: This is the output of a lisp function call to the user defined interp function. The interpreter was set to trace all the function calls which display all the calls and results as shown. The function itself is meant to act as an interpreter itself. It takes two arguments, the first is the function to interpret and the second is a "Program" which contains detentions of functions. The output of this call is a list (the Cons function returns a list with the first argument inserted in the front of a list given by the second argument and NIL means an empty list) of number which corresponds to the results of f(3), f(4), and f(5) with f(x) being defined as 3x^2 + 4x.

Prev Index Next