The McCarthy 91 function is a recursive function, defined by the computer scientist John McCarthy as a test case for formal verification within computer science.
The McCarthy 91 function is defined as
The results of evaluating the function are given by M(n) = 91 for all integer arguments n ≤ 100, and M(n) = n − 10 for n ≥ 101.
Read more about McCarthy 91 Function: History, Examples, Code, Proof, Knuth's Generalization
Famous quotes containing the words mccarthy and/or function:
“A society person who is enthusiastic about modern painting or Truman Capote is already half a traitor to his class. It is middle-class people who, quite mistakenly, imagine that a lively pursuit of the latest in reading and painting will advance their status in the world.”
—Mary McCarthy (19121989)
“It is the function of vice to keep virtue within reasonable bounds.”
—Samuel Butler (18351902)