Chapter 5 Examples of animated Turing gifs

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\):

plot_10p5 <- animated_turingmachine_plot(program_nplusm, input_builder_2d_animated(10,5), 
                            "Turingmachine computing f(n,m)=n+m, n=10,m=5")                       
turing_10p5 <- animate(plot_10p5, fps=7, renderer = gifski_renderer(), start_pause = 10, end_pause = 20)                       

turing_10p5

.

Animated plot of Turing machine computing \(3\cdot4\):

plot_3t4 <- animated_turingmachine_plot(program_ntimesm, input_builder_2d_animated(3,4), 
                            "Turingmachine computing: f(n,m)=nm,n=3, m=4")          
turing_3t4 <- animate(plot_3t4, fps=7, renderer = gifski_renderer(), start_pause = 10, end_pause = 20)                       
turing_3t4

.

Animated plot of Turing machine computing \(f(n)=0, n = 37\):

plot_37t0 <- animated_turingmachine_plot(program_0, input_builder_1d_animated(37),
                            "Turingmachine computing f(n)=0, n=37")
turing_37t0 <- animate(plot_37t0, fps=7, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_37t0

.

Animated plot of Turing machine computing \(f(n)=2n, n=15\):

plot_2t9 <- animated_turingmachine_plot(program_2n, input_builder_1d_animated(9),
                                         "Turingmachine computing f(n)=2n, n=9")
turing_2t9 <- animate(plot_2t9, fps=7, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_2t9

.

Animated plot of Turing machine computing \(f(n)=9, n=17\):

plot_17t9 <- animated_turingmachine_plot(program_9, input_builder_1d_animated(17),
                                         "Turingmachine computing f(n)=9, n=17") 
turing_17t9 <- animate(plot_17t9, fps=8, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_17t9

.

Animated plot of Turing machine computing \(f(n,m)=n-m, n=11,m=5\):

plot_11m5 <- animated_turingmachine_plot(program_nmonusm, input_builder_2d_animated(11,5),
                                         "Turingmachine computing f(n,m)=n-m, n=11, m=5", n_na=1) 
turing_11m5 <- animate(plot_11m5, fps=8, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_11m5

.

Animated plot of Turing machine computing \(f(n,m)=n-m, m=11,n=5\)

plot_5m11 <- animated_turingmachine_plot(program_nmonusm, input_builder_2d_animated(5,11),
                                         "Turingmachine computing f(n,m)=n-m, m=11, n=5", n_na=1) 
turing_5m11 <- animate(plot_5m11, fps=8, renderer = gifski_renderer(),start_pause = 10, end_pause = 20)
turing_5m11

.