Shape-Machine
Jump to navigation
Jump to search
A Shape-Machine is an example created by User:Ractangle where firstly it just adds 3 to variable a/input and then multiply it by 0.86, then prints the variable, and loop it over and over again.
Each number will get closer to 18.(428571) after each iteration of addition and multiplication.
Implementations
Python3
a=int(input()) while True:a=(a+3)*0.86;print(a)
><>
i>3+819+,619+19+*,+*v ^ o+19n:<
AsciiDots
. | # ? v--------------------\ *----$#-{+}----{*}-$#/ *-#3-----/ | *-#8----{/}-{+}-/ *-#10----/ | *-#6----{/}--/ >-#100---/
External resources
- Desmos interactive graph of this as a function.