ternary_arithmetic 0.1.2

balanced ternary use array logic gate to arithmetic
Documentation

Rust

Ternary Arithmetic

A Rust library use array logic gate to arithmetic. a numeral system with digits -1, 0, and +1.

Installation

Add this to your Cargo.toml:

cargo add ternary_arithmetic

Example

use ternary_arithmetic::ternary_io::Ternary;
use ternary_arithmetic::logical_calculate::Digit;

fn main() {
    let a = Ternary::parse("+0-+-+");
    let b = Ternary::parse("+-+-+");
    let result=&a + &b;
    result.digits_print();
}

License

This project is licensed under the MIT License.