Math::Logic::Ternary::Calculator::State - memory of the ternary calculator
This documentation refers to version 0.003 of Math::Logic::Ternary::Calculator::State.
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
TODO
None.
Martin Becker <becker-cpan-mp@cozap.com>
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.
To install Math::Logic::Ternary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Logic::Ternary
CPAN shell
perl -MCPAN -e shell install Math::Logic::Ternary
For more information on module installation, please visit the detailed CPAN module installation guide.