You can find the application live HERE. In case it isn't live please mail me at gundepudi18047@mech.ssn.edu.in
This is my first shiny application. I started out learning R programming at the beginning of this year and wanted to deploy data science projects or financial analysis tools as a web application. Recently, I came across the Shiny package in R and wanted to start working with and deploy a basic and interactive line plot. Hence I plotted the movement of the Collatz Conjucture for various inputs from the user. The graph also allows the user to zoom in and see the values at various parts of the graph.
This simple problem is something that has troubled mathematicians for a long time. One famous Mathematician Paul Erdos quoted that Mathematics is not ripe enough for a problem like this.
The function goes as follows
The conjecture states that for any natural number you take you will always reach the 4, 2, 1, loop. This is because when you get to 4, you must divide by 2 and then for 2 you must divide to get 1 and since 1 is odd you must multiply it by three and add one to get four. Thus leaving us in a loop. To visualize this for numbers between 1-1000, I have drawn a plot that shows the movement of the function for the selected input.
I was inspired to take up this project as my first shiny app after watching a video posted by veritasium on Youtube. You can find their video here
I would also like to thank the Data Professor for helping me learn the basics of Shiny for my first Shiny application. I have followed most of this course to implement the code written here. You can find the Shiny playlist here
For learning about the zoom function please visit this link