This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import math | |
fig = plt.figure() | |
ax = plt.axes() | |
ax.set_xlim([0,4]) | |
ax.set_ylim([0,1]) | |
xs = np.array([x/1000.0 for x in range(0,4001)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package collatz | |
import scala.collection.mutable.ListBuffer | |
import scala.collection.mutable.Set | |
class Digits(val digitSequence : Array[Byte]) { | |
val OUTPUT_DIGIT_WIDTH = 100 | |
override def toString(): String = { | |
val sb = new StringBuilder() |