NAME

Math::Logic::Ternary::Calculator::State - memory of the ternary calculator

VERSION

This documentation refers to version 0.004 of Math::Logic::Ternary::Calculator::State.

SYNOPSIS

use Math::Logic::Ternary::Calculator::State;
use Math::Logic::Ternary::Calculator::Mode;

$state = Math::Logic::Ternary::Calculator::State->new($word_size);
$state = Math::Logic::Ternary::Calculator::State->new($word_size, $mode);

$word_size = $state->word_size;
$mode      = $state->mode;            # balanced / unbalanced / base(-3)

$state->set_mode($mode);

@indexes = $state->append(@values);
$value   = $state->fetch($index);

$state->store($name, $value);
$value = $state->recall($name);

$string = $state->format_value($name, $value);
$value  = $state->convert_int($int);

@words  = $state->normalize_operands(@words);

($min, $max) = $state->range;

$state->reset($what);               # all / numbered / named

DESCRIPTION

TODO

Exports

None.

SEE ALSO

Math::Logic::Ternary::Calculator

AUTHOR

Martin Becker <becker-cpan-mp@cozap.com>

COPYRIGHT AND LICENSE

Copyright (c) 2012-2017 by Martin Becker, Blaubeuren. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.