Content deleted Content added
→Examples: give a 1st simple example of \mu; prepare for more examples, including properly general recursive ones |
→Examples: fix link to def |
||
Line 48:
The following examples are intended just to demonstrate the use of the minimization operator; they could also be defined without it, albeit in a more complicated way, since they are all primitive recursive.
{{unordered list
|The [[integer square root]] of <math>x</math> can be defined as the least <math>z</math> such that <math>(z+1)^2 > x</math>. Using the minimization operator, a general recursive definition is <math>Isqrt = \mu(Not \circ Gt \circ (Mul \circ (S \circ P_1^2,S \circ P_1^2), P_2^2))</math>, where <math>Not</math>, <math>Gt</math>, and <math>Mul</math> are logical negation, greater-than, and multiplication,<ref>defined in [[Primitive recursive function#Junctors]], [[Primitive recursive function#
}}
The following examples define general recursive functions that are not primitive recursive; hence they cannot avoid using the minimization operator.
|