On-line algorithms for multiplication and division in real and complex numeration systems
Abstract
A positional numeration system is given by a base and by a set of digits. The base is a real or complex number such that , and the digit set is a finite set of digits including . Thus a number can be seen as a finite or infinite string of digits. An on-line algorithm processes the input piece-by-piece in a serial fashion. On-line arithmetic, introduced by Trivedi and Ercegovac, is a mode of computation where operands and results flow through arithmetic units in a digit serial manner, starting with the most significant digit. In this paper, we first formulate a generalized version of the on-line algorithms for multiplication and division of Trivedi and Ercegovac for the cases that is any real or complex number, and digits are real or complex. We then define the so-called OL Property, and show that if has the OL Property, then on-line multiplication and division are feasible by the Trivedi-Ercegovac algorithms. For a real base and a digit set of contiguous integers, the system has the OL Property if . For a complex base and symmetric digit set of contiguous integers, the system has the OL Property if . Provided that addition and subtraction are realizable in parallel in the system and that preprocessing of the denominator is possible, our on-line algorithms for multiplication and division have linear time complexity. Three examples are presented in detail: base with digits ; base with digits ; and base , where , with digits .
Cite
@article{arxiv.1610.08309,
title = {On-line algorithms for multiplication and division in real and complex numeration systems},
author = {Christiane Frougny and Marta Pavelka and Edita Pelantova and Milena Svobodova},
journal= {arXiv preprint arXiv:1610.08309},
year = {2023}
}
Comments
Extended version of contribution on 23rd IEEE Symposium on Computer Arithmetic ARITH23