inst/doc/treegraphs.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup, message = FALSE---------------------------------------------------
library(collatz)
# Optionally
library(gmp)

## -----------------------------------------------------------------------------
tree_graph(16, 3)

## -----------------------------------------------------------------------------
tree_graph(4, 3)

## -----------------------------------------------------------------------------
tree_graph(1, 1, -3, -2, -5)

## -----------------------------------------------------------------------------
tree_graph(0, 1, 17, 2, -6)

## -----------------------------------------------------------------------------
tree_graph((27+as.bigz("576460752303423488")), 3)

Try the collatz package in your browser

Any scripts or data that you put into this service are public.

collatz documentation built on Sept. 5, 2022, 9:06 a.m.