We will here show some actual examples of gifs created by the function we defined in chapter 4, using the example programs we defined in chapter 3.
Animated plot of Turing machine computing \(10+5\):
<- animated_turingmachine_plot(program_nplusm, input_builder_2d_animated(10,5),
plot_10p5 "Turingmachine computing f(n,m)=n+m, n=10,m=5")
<- animate(plot_10p5, fps=7, renderer = gifski_renderer(), start_pause = 10, end_pause = 20)
turing_10p5
turing_10p5
.
Animated plot of Turing machine computing \(3\cdot4\):
<- animated_turingmachine_plot(program_ntimesm, input_builder_2d_animated(3,4),
plot_3t4 "Turingmachine computing: f(n,m)=nm,n=3, m=4")
<- animate(plot_3t4, fps=7, renderer = gifski_renderer(), start_pause = 10, end_pause = 20)
turing_3t4 turing_3t4
.
Animated plot of Turing machine computing \(f(n)=0, n = 37\):
<- animated_turingmachine_plot(program_0, input_builder_1d_animated(37),
plot_37t0 "Turingmachine computing f(n)=0, n=37")
<- animate(plot_37t0, fps=7, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_37t0 turing_37t0
.
Animated plot of Turing machine computing \(f(n)=2n, n=15\):
<- animated_turingmachine_plot(program_2n, input_builder_1d_animated(9),
plot_2t9 "Turingmachine computing f(n)=2n, n=9")
<- animate(plot_2t9, fps=7, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_2t9 turing_2t9
.
Animated plot of Turing machine computing \(f(n)=9, n=17\):
<- animated_turingmachine_plot(program_9, input_builder_1d_animated(17),
plot_17t9 "Turingmachine computing f(n)=9, n=17")
<- animate(plot_17t9, fps=8, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_17t9 turing_17t9
.
Animated plot of Turing machine computing \(f(n,m)=n-m, n=11,m=5\):
<- animated_turingmachine_plot(program_nmonusm, input_builder_2d_animated(11,5),
plot_11m5 "Turingmachine computing f(n,m)=n-m, n=11, m=5", n_na=1)
<- animate(plot_11m5, fps=8, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_11m5 turing_11m5
.
Animated plot of Turing machine computing \(f(n,m)=n-m, m=11,n=5\)
<- animated_turingmachine_plot(program_nmonusm, input_builder_2d_animated(5,11),
plot_5m11 "Turingmachine computing f(n,m)=n-m, m=11, n=5", n_na=1)
<- animate(plot_5m11, fps=8, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_5m11 turing_5m11
.