We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Shape-Machine
Jump to navigation
Jump to search
A Shape-Machine is an example created by User:Ractangle where first adds 3 to variable a (the input) and multiplies that by 0.86, then print the variable, and loop it over and over again.
Each number will get closer to 18.428571 after each iteration of the "Shape-Machine".
Pseudocode
a = input
repeat forever {
a = 0.86 * (a + 3)
output(a)
}
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 3 + 0.86 * >> 0 outputV outputS ", " jmp -7
Huit
(shape)<'&3+&0.86*:>[shape]
ALMFCPLIR
main > {
input > {i}
for [1] do {
{i} > [ [i + 3] * 0.86 }]
print > [i]
}
}
External resources
- Desmos interactive graph of this as a function.