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.
If this would be a number, i whould call it Shapn Number
Implementations
Python3
a=int(input()) while 1:print(a:=(a+3)*0.86)
><>
i>3+819+,619+19+*,+*v ^ o+19n:<
AsciiDots
. | # ? v--------------------\ *----$#-{+}----{*}-$#/ *-#3-----/ | *-#8----{/}-{+}-/ *-#10----/ | *-#6----{/}--/ >-#100---/
MoreMathRPN
inputR >> 0 outputV outputS ", " 3 + 0.86 * jmp -7
External resources
- Desmos interactive graph of this as a function.