Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
After following the "Get Started + Install" guide;
library(collatz) # Optionally library(gmp)
Compute a hailstone sequence, which defaults to the total stopping time;
hailstone_sequence(5)
Or only compute down to the regular stopping time;
hailstone_sequence(5, total_stopping_time=FALSE)
Remove verbose messaging;
hailstone_sequence(5, verbose=FALSE)
It will also stop on finding a cycle;
hailstone_sequence(-56)
And can be parameterised;
hailstone_sequence(3, -1, 3, 1)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.