Was bored, decided to implement deriving from calculus in java