Category: programming

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,...