English

On-line algorithms for multiplication and division in real and complex numeration systems

Data Structures and Algorithms 2023-06-22 v5

Abstract

A positional numeration system is given by a base and by a set of digits. The base is a real or complex number β\beta such that β>1|\beta|>1, and the digit set AA is a finite set of digits including 00. 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 β\beta is any real or complex number, and digits are real or complex. We then define the so-called OL Property, and show that if (β,A)(\beta, A) has the OL Property, then on-line multiplication and division are feasible by the Trivedi-Ercegovac algorithms. For a real base β\beta and a digit set AA of contiguous integers, the system (β,A)(\beta, A) has the OL Property if #A>β\# A > |\beta|. For a complex base β\beta and symmetric digit set AA of contiguous integers, the system (β,A)(\beta, A) has the OL Property if #A>ββ+β+β\# A > \beta\overline{\beta} + |\beta + \overline{\beta}|. Provided that addition and subtraction are realizable in parallel in the system (β,A)(\beta, A) 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 β=3+52\beta=\frac{3+\sqrt{5}}{2} with digits A={1,0,1}A=\{-1,0,1\}; base β=2i\beta=2i with digits A={2,1,0,1,2}A = \{-2,-1, 0,1,2\}; and base β=32+i32=1+ω\beta = -\frac{3}{2} + i \frac{\sqrt{3}}{2} = -1 + \omega, where ω=exp2iπ3\omega = \exp{\frac{2i\pi}{3}}, with digits A={0,±1,±ω,±ω2}A = \{0, \pm 1, \pm \omega, \pm \omega^2 \}.

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

R2 v1 2026-06-22T16:32:28.129Z