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).
History A computing machine for operations with functions was presented and developed by Mikhail Kartsev in 1967. 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. 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.
Positional codes of one-variable functions Source:
The main idea The positional code of an integer number A is a numeral notation of digits α in a certain positional number system of the form
A=α0α1…αk…αn. Such code may be called "linear". Unlike it a positional code of one-variable x function F(x) has the form:
F(x)=( ⋯ α22⋯α2k⋯ α11α12⋯α1k⋯α00α01α02⋯α0k⋯) and so it is flat and "triangular", as the digits in it comprise a triangle. The value of the positional number A above is that of the sum
A=∑k=0nαkρk, where ρ is the radix of the said number system. The positional code of a one-variable function correspond to a 'double' code of the form
F(x)=∑k=0n∑m=0kαmkRkyk−m(1−y)m, where R is an integer positive number, quantity of values that taken α, and y is a certain function of argument x. Addition of positional codes of numbers is associated with the carry transfer to a higher digit according to the scheme
αk⟶αk+1. Addition of positional codes of one-variable functions is also associated with the carry transfer to higher digits according to the scheme:
( αk+1,m+1 ↗ αk,m⟶αk+1,m). Here the same transfer is carried simultaneously to two higher digits.
R-nary triangular code A triangular code is called R-nary (and is denoted as TKR), if the numbers αmk take their values from the set
DR={−r1,−r1+1,…,−1,0,1,…,r2−1,r2}, where r1,r2≥0 and R=r1+r2+1. For example, a triangular code is a ternary code TK3, if αmk∈(−1,0,1), and quaternary TK4, if αmk∈(−2,−1,0,1). For R-nary triangular codes the following equalities are valid:
( 0 ↗ aR⟶0)=( a ↗ 0⟶a),( a ↗ 0⟶0)=( 0 ↗ aR⟶−a),( 0 ↗ 0⟶a)=( −a ↗ aR⟶0), where a is an arbitrary number. There exists TKR of an arbitrary integer real number. In particular, TKR(α)=α. Also there exists TKR of any function of the form yk. For instance, TKR(y2)=(0 0 1).
Single-digit addition in R-nary triangular codes consists in the following:
in the given (mk)-digit there is determined the sum Smk of the digits that are being added αmk, βmk and two carries pm,k−1, pm−1,k−1, transferred into this digit from the left, i.e. Smk=αmk+βmk+pm,k−1+pm−1,k−1, this sum is presented in the form Smk=σmk+Rpmk, where σmk∈DR, σmk is written in the (mk)-digit of summary code, and the carry pmk from the given digit is carried into (m,k+1)-digit and (m+1,k+1)—digit. This procedure is described (as also for one-digit addition of the numbers) by a table of one-digit addition, where all the values of the terms αmk∈DR and βmk∈DR must be present and all the values of carries appearing at decomposition of the sum Smk=σmk+Rpmk. Such a table may be synthesized for R>2. Below we have written the table of one-digit addition for R=3:
One-digit subtraction in R-nary triangular codes differs from the one-digit addition only by the fact that in the given (mk)-digit the value Smk is determined by the formula
Smk=αmk−βmk+pm,k−1+pm−1,k−1.
One-digit division by the parameter R in R-nary triangular codes is based on using the correlation:
( a ↗ 0⟶0)=( 0 ↗ aR⟶−a), from this it follows that the division of each digit causes carries into two lowest digits. Hence, the digits result in this operation is a sum of the quotient from the division of this digit by R and two carries from two highest digits. Thus, when divided by parameter R
in the given (mk)-digit the following sum is determined Smk=αmk/R−pm+1,k/R+pm+1,k+1, this sum is presented as Smk=σmk+pmk/R, where σmk∈DR, σmk is written into (mk)—digit of the resulting code, and carry pmk from the given digit is transferred into the (m−1,k−1)-digit and (m−1,k)-digit. This procedure is described by the table of one-digit division by parameter R, where all the values of terms and all values of carries, appearing at the decomposition of the sum Smk=σmk+pmk/R, must be present. Such table may be synthesized for R>2. Below the table will be given for the one-digit division by the parameter R for R=3:
Addition and subtraction 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.
Multiplication of R-nary triangular codes. Multiplication of a code TKR' by (mk)-digit of another code TKR′' consists in (mk)-shift of the code TKR', i.e. its shift k columns left and m rows up. Multiplication of codes TKR' and TKR′' consists in subsequent (mk)-shifts of the code TKR' and addition of the shifted code TKR' with the part-product (as in the positional codes of numbers).
Derivation of R-nary triangular codes. The derivative of function F(x), defined above, is
… excerpt ends here. Continue reading the full article.