SU1076912A1 - Device for calculating values of function (x-y)y - Google Patents

Device for calculating values of function (x-y)y Download PDF

Info

Publication number
SU1076912A1
SU1076912A1 SU823404884A SU3404884A SU1076912A1 SU 1076912 A1 SU1076912 A1 SU 1076912A1 SU 823404884 A SU823404884 A SU 823404884A SU 3404884 A SU3404884 A SU 3404884A SU 1076912 A1 SU1076912 A1 SU 1076912A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
input
inputs
difference
register
Prior art date
Application number
SU823404884A
Other languages
Russian (ru)
Inventor
Николай Сергеевич Анишин
Анатолий Сергеевич Анишин
Original Assignee
Кубанский государственный университет
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Кубанский государственный университет filed Critical Кубанский государственный университет
Priority to SU823404884A priority Critical patent/SU1076912A1/en
Application granted granted Critical
Publication of SU1076912A1 publication Critical patent/SU1076912A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

УСТРОЙСТВО ДЛЯ ВЫЧИСЛЕНИЯ ФУНКЦИИ (х-у)/у, содержащее два регистра, два сумматора-вычитател , блок анализа знака разности и блок управлени , содержащий генератор импульсов, элемент И, элемент ИЛИ, вычитающий счетчик, дешифратор нул , триггер, элемент НЕ и элемент задержки, причем выход генератора импульсов соединен с первым входом элемента И, второй вход и выход которого соединены соответственно с выходом триггера и входом элемента задержки, выход которого соединен с входом вычитающего счетчика, выход которого через дешифратор нул  соединен с первым входом элемента ИЛИ, второй вход и выход которого соединены соответственно с выходом элемента НЕ и входом установки в нуль триггера. вход установки в единицу которого соединен с входом элемента НЕ и выхо дом равенства величин блока анализа знака разности, выход элемента И блока управлени  соединен с тактовыми входами первого и второго регистров, выход элемента задержки соединен с тактовыми входами первого и второго сумматоров-вычитателей, управл ющие входы которых соединены с выходом знака разности блока анализа знака разности, первый и второй входы которого соединены соответственно с выходами первого и второго сумматоров-вычитателей, входы начальной установки которых соединены соответственно с входами первого и второго аргументов устройства , выход второго регистра соединен с входом первого сумматоравычитател , вход начальной установки второго регистра соединен с входом второго аргумента устройства, отличающеес  тем, что, с целью расширени  области применени  за счет возможности вычислени  относительной погрешности (-у)/ ij, выход знака разности блока анализа знака разности соединен с информационньм входом первого регистра,выход которого соединен с выходом устройства, выход второго регистра соединен с информационным входом второго сумматора-вычитател .A device for calculating the function (xy) / y, containing two registers, two totalizers-subtractors, a block of analysis of the sign of the difference and a control unit containing a pulse generator, element AND, element OR, subtractive counter, decoder zero, trigger, element NOT and a delay element, the output of the pulse generator is connected to the first input of the element I, the second input and the output of which are connected respectively to the trigger output and the input of the delay element whose output is connected to the input of the subtracting counter, the output of which is through the zero decoder connected to the first input of the OR element, the second input and output of which are connected respectively to the output of the element and the input to set the trigger to zero. the installation input into the unit of which is connected to the input of the NOT element and the output of equality of the values of the difference sign analysis block, the output of the control element AND of the control block is connected to the clock inputs of the first and second registers, the output of the delay element is connected to the clock inputs of the first and second adders, subtractors the inputs of which are connected to the output of the sign of the difference of the block of the analysis of the sign of the difference, the first and second inputs of which are connected respectively to the outputs of the first and second adders-subtractors, the inputs of the initial set Oki which are connected respectively to the inputs of the first and second arguments of the device, the output of the second register is connected to the input of the first totalizer, the input of the initial installation of the second register is connected to the input of the second argument of the device, characterized in that, in order to expand the scope due to the possibility of calculating the relative error ( -y) / ij, the output of the sign of the difference of the block of the analysis of the sign of the difference is connected to the information input of the first register, the output of which is connected to the output of the device, the output of the second th register coupled to the data input of the second adder-subtracter.

Description

Изобретение относитс  к-цифровой вычислительной технике и может быть использовано в цифровых измерительных приборах и системах обработки информации.The invention relates to digital computing and can be used in digital measuring devices and information processing systems.

Известен цифровой функциональный преобразователь, содержащий сумматоры-вычитатели, регистры,блок хранени  констант, блок анализа и блок управлени  l .A digital function converter is known, comprising adders, subtractors, registers, a unit for storing constants, an analysis unit, and a control unit l.

Недостатком данного устройства  вл етс  невозможность вычислени  значени  относительной погрешности.The disadvantage of this device is the impossibility of calculating the value of the relative error.

Наиболее близким к предлагаемому  вл етс  цифровой функциональный преобразователь, содержащий блок ан лиза, по два сумматора-вычитател  и регистра сдвига, блок управлени , причем первый и второй выходы блока управлени  соединены с управл ющими входами каждого из регистров сдвига и с тактовыми входами каждого из сумматоров-вычитателей соответственно , выходы которых поданы на входы блока анализа, а его два выхода соединены с сумматорами-вычитател ми и блоком управлени . Каждый из двух входов (переменные х и у ) св зан с входами занесени  сумматоров и регистров сдвига. Этот преобразователь позвол ет находить частное от делени  суммы квадратов входных переменных на их суммуThe closest to the present invention is a digital functional converter containing an analyzing unit, two totalizers-subtractors and a shift register, a control unit, the first and second outputs of the control unit being connected to the control inputs of each of the shift registers and clock inputs of each of the adders - the subtractors, respectively, whose outputs are fed to the inputs of the analysis unit, and its two outputs are connected to the subtractors and the control unit. Each of the two inputs (variables x and y) is associated with inputs of the recording of adders and shift registers. This converter allows you to find the quotient from dividing the sum of squares of input variables by their sum

)/lx.Ч).) /lx.H).

Недостатком известного устройств  вл етс  ограниченность области применени  из-за невозможности вычислени  частного от делени  разности двух чисел на одно из них (относительной погрешности).A disadvantage of the known devices is the limited scope due to the impossibility of calculating the quotient of dividing the difference of two numbers into one of them (relative error).

Цель изобретени  - расширение области применени  устройства за счет возможности вычислени  относительной погрешности { К- Ч 5 / 4 The purpose of the invention is to expand the field of application of the device due to the possibility of calculating the relative error {K-H 5/4

Поставленна  цель достигаетс  тем, что в устройстве дл  вычислени  функции (х-у) / у содержащем два регистра, два сумматора-вычитатл , блок анализа знака разности и блок управлени , содержащий генератор импульсов, элемент И, элемент ИЛИ, вычитающий счетчик, дешифратор нул , триггер, элемент НЕ и элемент задержки, причем выход генератора импульсов соединен с первым входом элемента И, второй вход и выход которого соединены соответственно с входом триггера и входом элемента задержки , выход которого соединен с входом вычитающего счетчика, выход которого через дешифратор нул  соединен с первым входом элемента ИЛИ, второй вход и выход которого соединен соответственно с выходом элемента НЕ и входом установки в нуль триггера, вход установки в единицу  The goal is achieved by the fact that in the device for calculating the function (xy) / y containing two registers, two adders, a subtractor, a difference sign analysis unit and a control unit containing a pulse generator, an AND element, an OR element, a subtracting counter, a decoder zero , a trigger, an NOT element and a delay element, the pulse generator output being connected to the first input of an And element, the second input and output of which are connected respectively to the trigger input and the input of the delay element whose output is connected to the input of the detracting counter, out one of which is connected to the first input of the OR element via the zero decoder, the second input and output of which are connected respectively to the output of the element NOT and the input of the setting to the zero of the trigger, the installation input to the unit

которого соединен с входом элемента НЕ и выходом равенства величин блока анализа знака разности,выход элемента И блока управлени  соедине с тактовыми входами первого и второго регистров, выход элемента задержки соединен с тактовыми входами первого и второго сумматоров-вычитателей , управл ющие входы которых соединены с выходом знака разности блока анализа знака разности,первый и второй входы которого соединены с выходами первого и второго сумматоров-вычитателей , входы начальной установки которых соединены с входами соответственно первого и второго аргументов устройства, выход второг регистра соединен с информационным входом первого сумматора-вычитател  вход начальной установки второго регистра соединен с входом второЛ аргумента устройства, выход знака разности блока анализа знака разности соединен с информационным входом первого регистра, выход которого соединен с выходом устройства, выход второго регистра соединен с информационным входом второго сумматора-вычитател  .which is connected to the input of the element NOT and the output of equality of the values of the difference sign analysis block, the output of the element AND of the control block is connected to the clock inputs of the first and second registers, the output of the delay element is connected to the clock inputs of the first and second adders-subtractors whose control inputs are connected to the output the sign of the difference block analysis of the sign of the difference, the first and second inputs of which are connected to the outputs of the first and second adders-subtractors, the inputs of the initial installation of which are connected to the inputs, respectively The first and second arguments of the device, the output of the second register are connected to the information input of the first adder-subtractor, the initial setup of the second register is connected to the second input of the device argument, the output of the difference sign of the difference sign analysis block is connected to the information input of the first register, the output of which is connected to the output of the device, the output of the second register is connected to the information input of the second adder-subtractor.

На фиг.1 представлена блок-схема предлагаемого устройства, на фиг,2- блок-схема блока управлени .Fig. 1 is a block diagram of the device according to the invention; Fig. 2 is a block diagram of a control unit.

Устройство содержит сумматорывычитатели 1 и 2, регистры 3 и 4, блок 5 анализа знака разности и бло 6 управлени , который включает генератор 7 импульсов, элемент И 8, элемент ИЛИ 9, элемент 10 задержки,вычитающий счетчик 11, дешифратор 12 нул , триггер 13 и элемент НЕ 14.The device contains summators 1 and 2, registers 3 and 4, a block of 5 analysis of the sign of the difference and control block 6, which includes a pulse generator 7, an AND 8 element, an OR 9 element, a delay element 10, a subtracting counter 11, a decoder 12 zero, a trigger 13 and the item is NOT 14.

К работе устройства имеют отношение следующие итеративные формулыThe following iterative formulas are related to the operation of the device

).).

L- ,при Xj-tjj с О;,L-, with Xj-tjj with O ;,

.S-9i-y- i }+Г-У,Ч,-Ч2 5.S-9i-y- i} + Г-У, Ч, -Ч2 5

где 3 1,2,. ..,(п-1) - номер итерации , И - число разр дов величин X и 1|.where 3 1,2 ,. .., (n-1) is the iteration number, and is the number of bits of the values X and 1 |.

Предлагаемое устройство работает следующим образом.The proposed device works as follows.

Перед начсшом работы во второй регистр 4 и во второй сумматор-вычитатель 2 заноситс  операнд у а в первый сумматор 1 - X . Включаетс  генератор тактовых импульсов в блоке б управлени . С выхода элемента И 8 блока 6 тактовый импульс поступает на тактовые входы регистров 3 и 4 и сдвигает их содержимое на один разр д вправо (регистр 4) и влево (регистр 3). Затем с выхода элемента 10 задержки блока 6 поступает задержанный во времени этот же тактовый импульс, который подает содер жимое регистра 4 на вход сумматоров 1 и 2, где производитс  вычитание или сложение его с предыдущими значени ми сумматоров. Причем выбор сложени  или вычитани  дл  конкретного сумматора осуществл ет блок 5 анализа знака разности по разности 5 j - yj - В случае, если она меньше нул , сумматор 1 работает в режиме сложени , а сумматор 2 вычитани . В противном случае их режимы взаимно мен ютс . РежимBefore starting work in the second register 4 and in the second adder-subtractor 2, the operand is entered in the first adder 1 - X. The clock generator in the control block b is turned on. From the output of the element 8 of block 6, the clock pulse goes to the clock inputs of registers 3 and 4 and shifts their contents one bit to the right (register 4) and to the left (register 3). Then, from the output of the delay element 10 of block 6, the same clock pulse delayed in time arrives, which supplies the contents of register 4 to the input of adders 1 and 2, where it is subtracted or added to the previous values of adders. Moreover, the choice of addition or subtraction for a specific adder is performed by block 5 for analyzing the sign of the difference by difference 5 j - yj - In case it is less than zero, adder 1 works in addition mode, and adder 2 subtracts. Otherwise, their modes mutually change. Mode

определ етс  в каждом такте.После выполнени  (tl-1) итераций в первом регистре сдвига содержитс  значение относительной погрешности 2 (, причем Z представлено в (п-15 младших разр дах первого регистра. Диапазон изменени  2 от 2 до минус 1 .При значени х 4 и | , привод щих к значению вне этого диапазона , необходимо ввести масштабирование у . Абсолютна  погреш- ность вычислени  будет равна determined at each clock. After running (tl-1) iterations in the first shift register, the relative error 2 is contained (the Z being represented in (n-15 least significant bits of the first register. Range of change 2 from 2 to minus 1. x 4 and |, resulting in a value outside this range, you must enter a scaling y. The absolute error of the calculation will be equal to

Фиг.11

Claims (1)

УСТРОЙСТВО ДЛЯ ВЫЧИСЛЕНИЯ ФУНКЦИИ (х-у)/у, содержащее два регистра, два сумматора-вычитателя, блок анализа знака разности и блок управления, содержащий генератор импульсов, элемент И, элемент ИЛИ, вычитающий счетчик, дешифратор нуля, триггер, элемент НЕ . и элемент задержки, причем выход генератора импульсов соединен с первым входом элемента И, второй вход и выход которого соединены соответственно с выходом триггера и входом элемента задержки, выход которого соединен с входом вычитающего счетчика, выход которого через дешифратор нуля соединен с первым входом элемента ИЛИ, второй вход и выход которого соединены соответственно с выходом элемента НЕ и входом установки в нуль триггера, вход установки в единицу которого соединен с входом элемента НЕ и выхо дом равенства величин блока анализа знака разности, выход элемента И блока управления соединен с тактовыми входами первого и второго регистров, выход элемента задержки соединен с тактовыми входами первого и второго сумматоров-вычитателей, управляющие входы которых соединены с выходом знака разности блока анализа знака разности, первый и второй входы которого соединены соответственно с выходами первого и второго сумматоров-вычитателей, входы начальной установки которых соединены соответственно с входами первого и второго аргументов устройства, выход второго регистра соединен с входом первого сумматоравычитателя, вход начальной установки второго регистра соединен с входом второго аргумента устройства, отличающееся тем, что, с целью расширения области применения за счет возможности вычисления относительной погрешности ц, выход знака разности блока анализа знака разности соединен' с информационным входом первого регистра,выход которого соединен с выходом устройства, выход второго регистра соединен с информационным входом второго сумматора-вычитателя.DEVICE FOR CALCULATING THE FUNCTION (xy) / y, containing two registers, two adders, a subtractor, a difference sign analysis unit and a control unit containing a pulse generator, AND element, OR element, subtracting counter, zero decoder, trigger, element NOT. and a delay element, wherein the output of the pulse generator is connected to the first input of the And element, the second input and output of which are connected respectively to the output of the trigger and the input of the delay element, the output of which is connected to the input of the subtracting counter, the output of which is connected through the zero decoder to the first input of the OR element, the second input and output of which are connected respectively to the output of the element NOT and the input of the zero setting of the trigger, the input of the unit to which is connected to the input of the element NOT and the output of the equality of values of the analysis unit On the other hand, the output of the AND element of the control unit is connected to the clock inputs of the first and second registers, the output of the delay element is connected to the clock inputs of the first and second adders-subtracters, the control inputs of which are connected to the output of the difference sign of the difference sign analysis unit, the first and second inputs of which are connected respectively, with the outputs of the first and second adders-subtracters, the inputs of the initial installation of which are connected respectively with the inputs of the first and second arguments of the device, the output of the second register with is single with the input of the first adder, the input of the initial setup of the second register is connected to the input of the second argument of the device, characterized in that, in order to expand the scope due to the possibility of calculating the relative error c, the output of the difference sign of the difference sign analysis unit is connected to the information input of the first register the output of which is connected to the output of the device, the output of the second register is connected to the information input of the second adder-subtractor.
SU823404884A 1982-03-11 1982-03-11 Device for calculating values of function (x-y)y SU1076912A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU823404884A SU1076912A1 (en) 1982-03-11 1982-03-11 Device for calculating values of function (x-y)y

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU823404884A SU1076912A1 (en) 1982-03-11 1982-03-11 Device for calculating values of function (x-y)y

Publications (1)

Publication Number Publication Date
SU1076912A1 true SU1076912A1 (en) 1984-02-29

Family

ID=21000272

Family Applications (1)

Application Number Title Priority Date Filing Date
SU823404884A SU1076912A1 (en) 1982-03-11 1982-03-11 Device for calculating values of function (x-y)y

Country Status (1)

Country Link
SU (1) SU1076912A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1. Авторское свидетельство СССР № 922760, кл. G 06 F 15/31, 1980. 2. Авторское свидетельство СССР 744595, кл. G 06 F 15/31, 1976 (прототип). *

Similar Documents

Publication Publication Date Title
SU1076912A1 (en) Device for calculating values of function (x-y)y
SU1076911A1 (en) Device for calculating values of function z(x-y)/(x+y)
SU633016A1 (en) Arithmetic device
SU744595A1 (en) Digital function generator
SU1049920A1 (en) Device for computing fourier coefficients
SU693379A2 (en) Function generator
SU646337A1 (en) Digital computer
SU922760A2 (en) Digital function generator
SU591861A1 (en) Functional converter
SU607214A1 (en) Arrangement for taking the third root of quotient and product
SU703823A1 (en) Device for computing elementary functions
SU1432512A1 (en) Series computing device
SU1001090A1 (en) Computing device
SU560229A1 (en) Device for calculating elementary functions
SU1575175A1 (en) Conveyer multiplier
SU744590A1 (en) Digital function generator
SU1113798A1 (en) Device for computing values of trigonometrical and hyperbolic functions
JP2605792B2 (en) Arithmetic processing unit
SU1336030A1 (en) Arithmetic device for processor of fast fourier transform
SU794637A1 (en) Device for quick fourier transform
SU717778A1 (en) Device for solving simultaneous differential equations
SU591860A1 (en) Device for computing vector coordinate values
SU1363191A1 (en) Serial adder-subtractor
SU661549A1 (en) Arithmetic device
SU435523A1 (en) DEVICE DEVELOPMENT