SU1383337A1 - Device for computing functions using table method - Google Patents
Device for computing functions using table method Download PDFInfo
- Publication number
- SU1383337A1 SU1383337A1 SU864074114A SU4074114A SU1383337A1 SU 1383337 A1 SU1383337 A1 SU 1383337A1 SU 864074114 A SU864074114 A SU 864074114A SU 4074114 A SU4074114 A SU 4074114A SU 1383337 A1 SU1383337 A1 SU 1383337A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- output
- outputs
- inputs
- block
- registers
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к вычис лительной технике и может быть использовано в виде автономного специализированного вычислител или в качестве функционального расширител в составе больших ЭВМ. Целью изобретени вл етс повышение точности за счет применени квадратичной аппроксимации . Устройство содержит первый блок 1 пам ти констант аппроксимации.The invention relates to computing technology and can be used as an autonomous specialized calculator or as a functional expander as part of large computers. The aim of the invention is to improve the accuracy due to the use of quadratic approximation. The device contains the first memory block 1 of the approximation constants.
Description
J -:::| J - ::: |
«"
imtaaimtaa
(Л(L
соwith
0000
ооoo
соwith
соwith
sjsj
33
57 5257 52
ПужPouche
гвguv
1717
второй блок 2 пам ти констант аппроксимации , блок 3 суммировани , блок 4 выходных регистров, первый 5, второй 6, третий 7, четвертый 8 регист ры блока 4 выходных регистров, выходы 9 результата, регистр 0 аргумента ,.вход 11 аргумента, первую 12, вторую 13, третью 14, четвертую J5 Г1)уппы элементов ИЛИ, умножители 16-second block 2 of memory of constants of approximation, block 3 of summation, block 4 of output registers, first 5, second 6, third 7, fourth 8 registers of block 4 output registers, output 9 results, register 0 argument, 11 input 11 argument, first 12 , the second 13, the third 14, the fourth J5 G1) uppa of the elements OR, the multipliers 16-
18 старшего, среднего, младшего байта , регистр 19 константы, блок 20 управлени , вход 21 запуска. Предложенное устройство использует квадратичную аппроксимацию, котора позвол ет на заданном интервале изменени аргумента вычислить значение функции в 5-10 раз точнее, чем при линейной аппроксимации . 1 ил.18 high, middle, low byte, register 19 constants, control block 20, start input 21. The proposed device uses a quadratic approximation, which makes it possible to calculate the value of the function 5-10 times more precisely over a given interval of argument variation than with a linear approximation. 1 il.
1one
Изобретение относитс к вычисли тельной технике и может быть использовано в качестве специализированного вычислител .This invention relates to a computational technique and can be used as a specialized calculator.
Цель изобретени - повышение точ- ности.за счет применени квадратичной аппроксимации.The purpose of the invention is to improve the accuracy. Due to the use of quadratic approximation.
На чертеже представлена функциональна схема устройства.The drawing shows the functional diagram of the device.
1 one
Устройство содержит первый блок JThe device contains the first block J
пам ти констант аппроксимации, второй блок 2 пам ти констант аппроксимации , блок 3 суммировани , блок 4 выходных регистров, первый 5, вто- рой 6, третий 7, четвертый 8 регистры блока 4 выходных регистров, выходы 9 результата, регистр 10 аргумента вход 11 аргумента, первую 12, вторую 13, третью J4, четвертую J5 груп- пы элементов ИЛИ, з множитель 16 стар шего байта, умножитель J7 среднего. 6afiTa, умножитель J8 младшего байта, регистр 19 константы, блок 20 управлени , вход 21 запуска, первьй 22, вто- рой 23, третий 24, четвертый 25, п тый 26, шестой 27, седьмой 28, вось мой 29, дев тый 30, дес тьш 31 выходы блока управлени , выход 32 старших разр дов умножител старшего байта, выход 33 старщих разр дов умножител среднего байта, выход 34 старших разр дов умножител младшего байта, выход 35 младших разр дов умножител старшего байта, выход 36 младших разр дов умножител среднего байта, выход 37 младших разр дов умножител младшего байта, первый сумматор 38 откорректированных сумм, первый промежуточный cj MMaTop 39, второй промежуточный сумматор 40, второй 41, третий 42, четвертьй 43 сумматоры откорректированных сумм, информационные выходы 44-47 первого, второго, третьего , четвертого сумматоров откорректированных сумм, п тый регистр 48, шестой регистр 49, седьмой регистр 50 блока выходных регистров, одиннадца- .тьй 51 и двенадцатьй 52 выходы блока управлени .memory approximation constants, the second block 2 memory approximation constants, block 3 summation, block 4 output registers, first 5, second 6, third 7, fourth 8 registers unit 4 output registers, outputs 9 result, register 10 argument input 11 argument, the first 12, the second 13, the third J4, the fourth J5 of the group of elements OR, the old byte multiplier 16, the average multiplier J7. 6afiTa, J8 low byte multiplier, constant register 19, control block 20, start input 21, first 22, second 23, third 24, fourth 25, fifth 26, sixth 27, seventh 28, eighth 29, ninth 30 , ten of the 31 outputs of the control unit, the output of the high-order 32 bits of the high byte, the output of the 33 high-order bits of the middle byte, the output of the 34 high-order bits of the low byte, the output of the 35 lower bits of the high byte multiplier, the output of the 36 low bits of the multiplier middle byte, output 37 low bits multiplier low byte, first adder 38 corrected amounts, the first intermediate cj MMaTop 39, the second intermediate adder 40, the second 41, the third 42, the fourth 43 adders of the corrected amounts, information outputs 44-47 of the first, second, third, fourth adders of the adjusted amounts, the fifth register 48, the sixth register 49 , the seventh register 50 of the block of output registers, one-half 51 and twelve 52 outputs of the control block.
Устройство функционирует следуюш 1М образом.The device operates in the following 1M manner.
Интервал изменени аргумента разбиваетс на 2 участков (п - старшие разр ды аргумента без знакового разр да ).The interval of change of the argument is divided into 2 sections (n is the highest order of the argument without a sign bit).
На каждом из участков функции аппроксимируетс крива второго пор дка видаAt each of the sections of the function, a second-order curve is approximated.
у Ах +Бх+С,y Ah + Bh + C,
коэффициенты которой А,В и С подбираютс исход из минимального значени среднеквадратичной ошибки по методу наименьших квадратов.the coefficients of which are A, B and C are chosen based on the minimum value of the root-mean-square error using the least squares method.
Аргумент X, коэффициенты А,В и С и функции у представл ютс в виде К1-разр дных двоичных групп. В частном случае при двоичной разр дности аргумента х, коэффициентов А, В, С и функции равной 24 двоичных разр дов целесообразно прин ть п 7, К 3, 1 8.Argument X, coefficients A, B and C and functions y are represented as K1-bit binary groups. In the particular case when the binary resolution of the argument x, coefficients A, B, C and the function is 24 binary bits, it is advisable to take n 7, K 3, 1 8.
Вычисление функции вьшолн етс по схеме Горнера, т.е. вычисл етс The calculation of the function is performed according to the Horner scheme, i.e. computed
у (АХ + В)х + С.y (AH + B) x + C.
Б первом такте по сигналу с второго выхода 23 блока 20 управлени в регистр 10 аргумента поступает трех- байтовьй аргумент, у которого в левом (первом) байте левый (старший)In the first clock cycle, the signal from the second output 23 of the control unit 20 controls a three-byte argument to the argument register 10, which has a left (senior) in the left (first) byte
двоичный разр д знаковой, а по сигналу с одиннадцатого выхода 51 блока 20 управлени обнул ютс регистры с первого по седьмой 5-8,48-50 блока выходных регистров,the binary bit is significant, and the signals from the eleventh output 51 of the control unit 20 reset the registers from the first to the seventh 5-8.48-50 block of the output registers,
Во втором такте из первого блока пам ти констант аппроксимации по адресу , задаваемому п старшими разр - .дами X, с помощью сигнала с первого выхода 22 блока 20 управлени извлекаетс третий (младший) байт константы А (а) и через четвертую группу элементов ИЛИ поступает на входы вторых сомножителей умножителей J6-J8, на входы первых сомножителей которых по сигналу с третьего 24 выхода блока 20 управлени с регистра JO аргумента на первую, вторую и третью группы элементов ИЛИ поступаю г бай- ты аргумента х: на умножитель 16 старшего байта (байт х ,), на умножи тель 17 среднего байта (байт х), на умножитель 18 младшего байта (байт х ,).In the second cycle, the third (lower) byte of the constant A (a) is extracted from the first output 22 of the control unit 20 from the first block of memory of the approximation constant given by the higher-order bits X, and through the fourth group of elements OR it enters to the inputs of the second multipliers of multipliers J6-J8, to the inputs of the first factors of which the signal from the third 24 output of control block 20 from the register JO of the argument to the first, second and third groups of elements OR I receive g bytes of argument x: to the multiplier 16 high byte ( bytes x,), on multiplier 17 middle byte (byte x), multiplier 18 low byte (byte x,).
В третьем такте по сигналу с дев того 30 вьпсода блока 20 управлени операнды а., и х ввод тс в соответствующие умножители 16-18 старшего , среднего и младшего байта.In the third clock cycle of the signal from the ninth 30 of the output of the control block 20, the operands a., And x are entered in the corresponding multipliers 16-18 of the high, middle and low byte.
В четвертом такте по сигналу с дес того 31 выхода блока 20 управлени результаты умножени х,а,, , и , с выхода умножителей 16-18 старшего, среднего и младшего байта поступают .на промежуточных сумматоров 39 и 40 и сумматоров 38, 41-43 промежуточных сумм, т.е. вьшолн етс и начинаетс процесс вычислени величины х а.In the fourth cycle, the signal from the tenth 31 output of the control block 20 results the multiplications, a ,, and, from the output of the multipliers 16-18 high, middle and low byte, the intermediate adders 39 and 40 and the adders 38, 41-43 interim amounts, i.e. The process of calculating the magnitude of x a begins.
по правилу ,- «-Эaccording to the rule - "-E
-x-aS x,S -a-S + x-S-ajS + + x, (c ,.S- + als;) +-x-aS x, S -a-S + x-S-ajS + + x, (c, .S- + als;) +
+(c;s % a/S- ).+ (C;S H- a .S- ),+ (c; s% a / S-). + (C; S H- a .S-),
ВеличиныValues
и a, по вл ютс наand a, appear on
выходах умножител 16 старшего байта, величины с 2 и aj на выходах умно жител 17 среднего байта, величины с и а , - на выходах умножител J8 младшего байта.the outputs of the multiplier 16 high byte, the value of c 2 and aj at the outputs of the intelligent inhabitant 17 of the middle byte, the values of c and a, at the outputs of the multiplier J8 of the lower byte.
В п том такте по сигналу с один- н адцатого 51 выхода блока 20 управлени содержимое сумматоров 38,41-43 заноситс соответственно в регистры 5-8 блока 4 выходных регистров. На этом заканчиваетс цикл умножени аргумента х на младший байт а.коэ фициента А.In the fifth cycle, the signal from the one-fifth 51 output of the control unit 20 controls the contents of the adders 38, 41-43, respectively, into the registers 5-8 of the unit 4, the output registers. This ends the cycle of multiplying the argument x by the low byte a.koe bycy A.
00
5five
00
ко ЭФФИЦИ- L, КОЭФФИДалее производитс умножение аргу мента X на средний байт а ента А и на старший байт а циента А. Это выполн етс в тактах,на - чина с второго,в котором из первого блока 1 пам ти по адресу, задаваемому п старшими разр дами х с помощью сигналов с четвертого 25, а затем с п того 26 выходов блока 20 управлени , извлекаетс второй (а) и первый (Ъ,) байты константы А.the EFFICILE L, COEFFIDaley multiplies the argument X by the middle byte of the amplifier A and by the high byte of the sample A. This is performed in cycles, starting with the second one, in which from the first memory block 1 at the address specified by the higher bits x using the signals from the fourth 25, and then from the fifth 26 outputs of the control unit 20, extract the second (a) and first (b,) constant bytes of A.
После того как закончились три цикла умножени аргумента х на А вAfter three cycles of multiplying x by A into are completed.
5 регистрах -6-8, 48-50 наход тс шесть байтов этого произведени .Five registers -6-8, 48-50 are six bytes of this work.
Далее по сигналу с шестого выхода 27 блока 20 управлени по адресу, заданному старшими разр дами аргумента х, с второго блока 2 пам ти констант через аппроксимации первую, вторую и третью грзтапы элементов ИЛИ на умножители 16-J8 поступают байты коэффициента В: на умножитель 16 старшего байта Ь,, на умножитель 17 среднего байта Ъ,, , на умножитель 18 младшего байта Ъ . Одновременно по сигналу восьмого выхода 29 блока 20 управлени с регистра J9 константыThen, the signal from the sixth output 27 of the control unit 20 at the address specified by the higher bits of the argument x, from the second block 2 of the constant memory, approximates the first, second, and third gates of the OR elements to the multipliers 16-J8 by the coefficients B: to the multiplier 16 high byte b, multiplier 17 middle byte b, and multiplier 18 low byte b. Simultaneously by the signal of the eighth output 29 of the control block 20 from the constant register J9
0 через четвертую группу элементов ИЛИ на входы вторых сомножителей умножителей 16-18 поступает байт константы 1 вида 00000001.0 through the fourth group of elements OR to the inputs of the second multipliers of multipliers 16-18 enters a constant byte 1 of the form 00000001.
В пocлeдyюш ie два такта по сигна5 лам с дев того 30 и дес того 31 выходов блока 20 управлени в умножител х 16-J8 вычисл етс величина В.1. В результате работы блока 3 пуммато- ров величина Ах + В1 сформирована на выходах 45-47 блока 3 сумматоров, на выходе 44 блока 3 сумматора имеетс нуль.In the subsequent ie, two clocks, according to the signals from the ninth 30 and tenth 31 outputs of the control unit 20, the value B.1 is calculated in the multipliers 16-J8. As a result of the operation of the 3 pummators block, the value of Ax + B1 is formed at the outputs 45-47 of the block 3 of adders, at the output 44 of the block 3 of the adder there is zero.
Далее по сигналу с одиннадцатого выхода 51 блока 20 управлени содер5 жимое сумматоров 38, 41, 42 и 43 блока 3 суммировани заноситс в регистры 5-8 регистра 4 функций, а содержимое регистров 48 и 49 смещаетс вправо на один байт. В результате наFurther, by the signal from the eleventh output 51 of control unit 20, the contents of adders 38, 41, 42 and 43 of summation unit 3 are entered into registers 5-8 of function register 4, and the contents of registers 48 and 49 are shifted to the right by one byte. As a result on
0 , ., ., 0,.,.,
нn
,,
Содержимое регистров 6-8 и 48 необходимо сместить на два байта вправо так, чтобы в регистре 50 находилс четверый байт величины Ах+В, Такой сдвиг в устройстве выполн етс двум циклами умножени х на О. Это умножение выполн етс по сигналу восьмого выхода 29 блока 20 управле-.The contents of registers 6-8 and 48 must be shifted two bytes to the right so that in register 50 there is a four byte of the value Ax + B. Such a shift in the device is performed by two cycles of multiplication by 0. This multiplication is performed by the signal of the eighth output 29 of the block 20 control.
ни , при котором с регистра 19 конс- тгшты на входы .вторых сомножителей умножителей le- lS подаетс байт конс танты О вида 00000000, в то врем как на входы первых сомножителей умножителей поступает х.This means that from the register 19 the constants to the inputs of the second multipliers of the multipliers LesS are given the byte of the consultant O of the form 00000000, while the inputs of the first multipliers of the multipliers are x.
По сигналам с дев того 30 и дес того 31 выходов блока 20 управлени в умножител х 16-18 умножаетс X на О На их выходах по вл ютс нули, которые суммиру сь на сумматорах 41-43 откорректированных сумм с содержимым первого 5 второго 6 и третьего 7 регистров по сигналу с одиннадцатого выхода 51 блока 20 управлени позвол ет сдвинуть их содержимое на один байт вправо, повтррив такое умножение дважды содержимое регистров блока 4 выходных регистров на два байта вправо. Поскольку в эти два цикла с дв€ Надцатого выхода 52 блока 20 управлени сигнал не подаетс , то содержимое регистра 50 на выход не выдаетс .According to signals from the ninth 30 and the tenth 31 outputs of the control unit 20 in multipliers 16-18, X is multiplied by O. Zeroes appear on their outputs, which are summed on adders 41-43 of the corrected sums with the contents of the first 5 second 6 and third The 7 registers by the signal from the eleventh output 51 of the control unit 20 allow shifting their contents one byte to the right by repeating such multiplication twice the registers of the block 4 output registers two bytes to the right. Since during these two cycles from the twelfth output 52 of the control unit 20, no signal is applied, the contents of the register 50 are not output.
В следующие четыре-цикла при наличии двенадцатого сигнала 52 производитс умножение аргумента х на четыре байта величины Ax+B.l, т.е. вычисление (Ах+Б.1):Х. После каждого цикла умножени . (Ах+В. 1 );-Х () в пор дке (Axi+B.l )Хз(Ах+В.1 )X4{Ax+ +B.l)X, содержимое регистров блока 4 выходных регистров сдвигаетс на один байт вправо, в результате чего в подрегистрах 5-8, 48 и 50 находитс семь старпшх байтов проведени (Ах+В.1)-Х.In the next four cycles, when the twelfth signal is present 52, the argument x is multiplied by four bytes of the value Ax + B.l, i.e. calculation (Ax + B.1): X. After each multiplication cycle. (Ax + B. 1); - X () in the order of (Axi + Bl) Xs (Ax + B.1) X4 {Ax + + Bl) X, the contents of the registers of block 4 of the output registers are shifted by one byte to the right, as a result In subregistries 5-8, 48, and 50, there are seven old byte conducts (Ax + B.1) -X.
В последнем цикле к величине (Ах+В.1)-Х прибавл етс величина С,, Этот цикл вьшолн етс аналогично циклу Ах+В..In the last cycle, the value of C ,, is added to the value (Ax + B.1) -X. This cycle is performed similarly to the cycle Ax + B ..
В результате в первом регистре имеетс нуль, а с второго по седьмой (6-8,48 и 50) соответствун) байты функции у. Поскольку аргзт ент х и коэффициенты А,В и С трехбайтовые, то и результат может быть только трехбайтовым, потому что в байтах п того 48, шестого 49 и седьмого 50 регистров имеютс неточные цифры.Поэтому вычисленное значение функции у.снимаетс с второго 6, третьего 7, четвертого 8 регистров блока 4,As a result, in the first register there are zero, and from the second to the seventh (6-8.48 and 50) corresponding bytes of the function y. Since the x argument and the A, B, and C coefficients are three-byte, the result can only be three-byte, because in bytes of the 48th, 6th, 49th, and seventh 50 registers there are inaccurate numbers. Therefore, the calculated value of the y function is removed from the second 6, the third 7, fourth 8 registers of block 4,
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864074114A SU1383337A1 (en) | 1986-05-15 | 1986-05-15 | Device for computing functions using table method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864074114A SU1383337A1 (en) | 1986-05-15 | 1986-05-15 | Device for computing functions using table method |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1383337A1 true SU1383337A1 (en) | 1988-03-23 |
Family
ID=21240183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864074114A SU1383337A1 (en) | 1986-05-15 | 1986-05-15 | Device for computing functions using table method |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1383337A1 (en) |
-
1986
- 1986-05-15 SU SU864074114A patent/SU1383337A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 826324, кл. G 06 F 1/02, 1979. Смолов В.Б. Функциональные преобразователи инфopмaциИi -Л.; Энерго- издат, 1981, с.144, рис.4,4а. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1383337A1 (en) | Device for computing functions using table method | |
RU2055394C1 (en) | Device for search of roots | |
SU1183960A1 (en) | Multiplying device | |
SU1751777A1 (en) | Device for computing roots | |
SU942247A1 (en) | Digital non-recursive filter | |
SU877529A1 (en) | Device for computing square root | |
SU1410024A1 (en) | Multiplication device | |
SU783791A1 (en) | Polynominal multiplying device | |
SU1173410A1 (en) | Apparatus for multiplication in the excessive serial code | |
SU1024914A1 (en) | Device for computing simple functions | |
JPS61213926A (en) | Dsp arithmetic processing system | |
SU669353A1 (en) | Arithmetic device | |
SU935954A1 (en) | Device for calculating differential equations | |
SU711570A1 (en) | Arithmetic arrangement | |
SU879586A1 (en) | Digital integrator | |
SU596952A1 (en) | Arrangement for solving differential simultaneous equations | |
SU960806A1 (en) | Device for computing polynoms | |
SU1140115A1 (en) | Device for calculating value of polynominal of degree n | |
SU940167A1 (en) | Device for solving linear simultaneous equations | |
SU785870A1 (en) | Number logarithm computing device | |
SU911522A1 (en) | Digital function generator | |
SU942037A1 (en) | Correlation meter of probability type | |
SU682895A1 (en) | Apparatus for computing exponential functions | |
SU640290A1 (en) | Square rooting arrangement | |
SU326576A1 (en) | MULTIPLICATION DEVICE |