Within computer engineering and computer science, a computer for operations with (mathematical) functions (unlike the usual computer) operates with functions at the hardware level (i.e. without programming these operations).[1] [2] [3]
A computing machine for operations with functions was presented and developed by Mikhail Kartsev in 1967.[1] Among the operations of this computing machine were the functions addition, subtraction and multiplication, functions comparison, the same operations between a function and a number, finding the function maximum, computing indefinite integral, computing definite integral of derivative of two functions, derivative of two functions, shift of a function along the X-axis etc. By its architecture this computing machine was (using the modern terminology) a vector processor or array processor, a central processing unit (CPU) that implements an instruction set containing instructions that operate on one-dimensional arrays of data called vectors. In it there has been used the fact that many of these operations may be interpreted as the known operation on vectors: addition and subtraction of functions - as addition and subtraction of vectors, computing a definite integral of two functions derivative— as computing the vector product of two vectors, function shift along the X-axis – as vector rotation about axes, etc.[1] In 1966 Khmelnik had proposed a functions coding method, i.e. the functions representation by a "uniform" (for a function as a whole) positional code. And so the mentioned operations with functions are performed as unique computer operations with such codes on a "single" arithmetic unit.
Source:
The positional code of an integer number
A
\alpha
A=\alpha0\alpha1...\alphak...\alphan
x
F(x)
F(x)=\begin{pmatrix} & & … \ & &\alpha22 … \alpha2k … \ &\alpha11&\alpha12 … \alpha1k … \ \alpha00&\alpha01&\alpha02 … \alpha0k … \end{pmatrix}
The value of the positional number
A
A=
n | |
\sum | |
k=0 |
\alphak\rhok
\rho
F(x)=
n | |
\sum | |
k=0 |
k | |
\sum | |
m=0 |
\alphamkRkyk-m(1-y)m
R
\alpha
y
x
Addition of positional codes of numbers is associated with the carry transfer to a higher digit according to the scheme
\alphak\longrightarrow\alphak+1
\begin{pmatrix} &\alphak+1,m+1\ \nearrow& \ \alphak,m\longrightarrow&\alphak+1,m\end{pmatrix}
A triangular code is called R-nary (and is denoted as
TKR
\alphamk
DR=\{-r1,-r1+1,...,-1,0,1,...,r2-1,r2\}
r1, r2\geq0
R | |
=r1+r2+1
TK3
\alphamk\in(-1,0,1)
TK4
\alphamk\in(-2,-1,0,1)
\begin{pmatrix} &0\ \nearrow& \ aR\longrightarrow&0\end{pmatrix}=\begin{pmatrix} &a\ \nearrow& \ 0\longrightarrow&a\end{pmatrix}, \begin{pmatrix} &a\ \nearrow& \ 0\longrightarrow&0\end{pmatrix}=\begin{pmatrix} &0\ \nearrow& \ aR\longrightarrow&-a\end{pmatrix}, \begin{pmatrix} &0\ \nearrow& \ 0\longrightarrow&a\end{pmatrix}=\begin{pmatrix} &-a\ \nearrow& \ aR\longrightarrow&0\end{pmatrix}
a
TKR
TKR(\alpha)=\alpha
TKR
yk
2 | |
TK | |
R(y |
)=(0 0 1)
in R-nary triangular codes consists in the following:
(mk)
S | |
mk |
\alphamk, \betamk
pm,k-1, pm-1,k-1
S | |
mk |
=\alphamk+\betamk+pm,k-1+pm-1,k-1
S | |
mk |
=\sigmamk+Rpmk
\sigmamk\inDR
\sigmamk
(mk)
pmk
(m,k+1)
(m+1,k+1)
\alphamk\inDR
\betamk\inDR
S | |
mk |
=\sigmamk+Rpmk
R>2.
R=3
Smk | TK(Smk) |
|
| - | . | . | 0 | . | . | - | 0 | 0 | 0 | 0 | 0 | - | . | . | 0 | . | . | - | 1 | 1 | 0 | 1 | 0 | - | . | . | 0 | . | . | - | (-1) | (-1) | 0 | (-1) | 0 | - | . | . | 1 | . | . | - | 2 | (-1) | 1 | (-1) | 1 | - | . | . | 1 | . | . | - | 3 | 0 | 1 | 0 | 1 | - | . | . | 1 | . | . | - | 4 | 1 | 1 | 1 | 1 | - | . | . | (-1) | . | . | - | (-2) | 1 | (-1) | 1 | (-1) | - | . | . | (-1) | . | . | - | (-3) | 0 | (-1) | 0 | (-1) | - | . | . | (-1) | . | . | - | (-4) | (-1) | (-1) | (-1) | (-1) |
---|
in R-nary triangular codes differs from the one-digit addition only by the fact that in the given
(mk)
S | |
mk |
S | |
mk |
=\alphamk-\betamk+pm,k-1+pm-1,k-1
in R-nary triangular codes is based on using the correlation:
\begin{pmatrix} &a\ \nearrow& \ 0\longrightarrow&0\end{pmatrix}=\begin{pmatrix} &0\ \nearrow& \ aR\longrightarrow&-a\end{pmatrix}
(mk)
S | |
mk |
=\alphamk/R-pm+1,k/R+pm+1,k+1
S | |
mk |
=\sigmamk+pmk/R
\sigmamk\inDR
\sigmamk
(mk)
pmk
(m-1,k-1)
(m-1,k)
S | |
mk |
=\sigmamk+pmk/R
R>2.
R=3
Smk | TK(Smk) |
|
| - | . | . | 0 | . | . | - | 0 | 0 | 0 | 0 | 0 | - | . | . | 1 | . | . | - | 1 | 0 | 0 | 1 | 0 | - | . | . | (-1) | . | . | - | (-1) | 0 | 0 | (-1) | 0 | - | . | . | 0 | . | . | - | 1/3 | 1 | (-1/3) | 0 | 1 | - | . | . | 1 | . | . | - | 2/3 | (-1) | 1/3 | 1 | (-1) | - | . | . | 1 | . | . | - | 4/3 | 1 | (-1/3) | 1 | 1 | - | . | . | 2 | . | . | - | 5/3 | (-1) | 1/3 | 2 | (-1) | - | . | . | 0 | . | . | - | (-1/3) | (-1) | 1/3 | 0 | (-1) | - | . | . | (-1) | . | . | - | (-2/3) | 1 | (-1/3) | (-1) | 1 | - | . | . | (-1) | . | . | - | (-4/3) | (-1) | 1/3 | (-1) | (-1) | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
. | . | (-2) | . | . | - | (-5/3) | 1 | (-1/3) | (-2) | 1 |
of R-nary triangular codes consists (as in positional codes of numbers) in subsequently performed one-digit operations. Mind that the one-digit operations in all digits of each column are performed simultaneously.
of R-nary triangular codes. Multiplication of a code
TK | |
R' |
(mk)
TK | |
R'' |
(mk)
TK | |
R' |
TK | |
R' |
TK | |
R'' |
(mk)
TK | |
R' |
TK | |
R' |
of R-nary triangular codes. The derivative of function
F(x)
\partialF(x) | = | |
\partialx |
\partialy | |
\partialx |
\partialF(x) | |
\partialy |
F(x)
\partialF(x) | |
\partialy |
\partialy | |
\partialx |
\partialF(x) | |
\partialy |
\partial | |
\partialx |
\begin{pmatrix} & &0\ &0&\alphamk\ 0&0&0\end{pmatrix}=\begin{pmatrix} & &(k-m)\alphamk\ &0&(k-2m)\alphamk\ 0&0&(-m)\alphamk\end{pmatrix}
of R-nary triangular codes. A function represented by series of the form
F(x)=
n | |
\sum | |
k=0 |
Akyk
Ak
yk
\alphamkRkyk(1-y)m
of R-nary triangular codes. This is the name of an operation of reducing the number of "non"-zero columns. The necessity of truncation appears at the emergence of carries beyond the digit net. The truncation consists in division by parameter R. All coefficients of the series represented by the code are reduced R times, and the fractional parts of these coefficients are discarded. The first term of the series is also discarded. Such reduction is acceptable if it is known that the series of functions converge. Truncation consists in subsequently performed one-digit operations of division by parameter R. The one-digit operations in all the digits of a row are performed simultaneously, and the carries from lower row are discarded.
R-nary triangular code is accompanied by a scale factor M, similar to exponent for floating-point number. Factor M permits to display all coefficients of the coded series as integer numbers. Factor M is multiplied by R at the code truncation. For addition factors M are aligned, to do so one of added codes must be truncated. For multiplication the factors M are also multiplied.
Source:[4]
Positional code for function of two variables is depicted on Figure 1. It corresponds to a "triple" sum of the form::
F(x,v)=
n | |
\sum | |
k=0 |
k | |
\sum | |
m1=0 |
k | |
\sum | |
m2=0 |
\alpham1,m2,kRkyk-m1(1-y)m1zk-m2(1-z)m2
R
\alpham1,m2,k
y(x),~z(v)
x,~v
\alpham1,m2,k
{m1,m2,k}
PKR
\alpham1,m2,k
DR
PKR
R\geq7
A positional code for the function from several variables corresponds to a sum of the form
F(x1,\ldots,xi,\ldots,xa)=
n | |
\sum | |
k=0 |
k | |
\sum | |
m1=0 |
\ldots
k | |
\sum | |
ma=0 |
(\alpha | |
m1,\ldots,ma,k |
Rk
a | |
\prod | |
i=1 |
k-mi | |
(y | |
i |
mi | |
(1-y | |
i) |
))
where
R
\alpha | |
m1,\ldots,ma,k |
yi(xi)
xi
\alpham1,m2,m3,k
{m1,m2,m3,k}
GPKR
\alpha | |
m1,\ldots,ma,k |
DR
GPKR
2a
R\geq(2a-1-1)