Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > b8ec8bfa2b3d0923a5da0c96615f305f > files > 35

mathomatic-15.7.2-1mdv2010.2.i586.rpm


; The Collatz conjecture as a mathematical feedback equation:
out = (in/2) - (((5*in) + 2)*(((-1)^in) - 1)/4)
; Prove that feeding "out" into "in" will
; always eventually count down to the number 1.
; Run with the command "calc in".
; Repeatedly prompt with the command "repeat calc in".
; See all intermediate in/out values by typing "set debug 1" beforehand.