Category: programming

0

Planets and Ships

This is a Processing sketch that Peter and I wrote a while ago. You should see a black square with a bunch of colored circles. Each circle is a planet. Now click to launch...

Balanced Ternary in MATLAB 0

Balanced Ternary in MATLAB

I wanted to do something with balanced ternary the other day, so I wrote this MATLAB class. classdef bt % Class for managing numbers in balanced ternary. % properties (SetAccess=’private’) trits = ”; end...

Balanced Ternary 0

Balanced Ternary

Do you have a favorite number system? I do. Knuth said: Perhaps the prettiest number system of all, is the balanced ternary notation. Balanced ternary is a number system where the radix is 3,...