11 Изобретение относитс к вычислительной технике и может быть использовано при разработке цифровых вычис лительных машин дл вычислени степенных функций. Целью изобретени вл етс сокращение аппаратурных затрат. На чертеже.представлена блок-схема устройства. Устройство содержит реверсивные сче.чики 1 и 2, вьтитаюший счетчик 3, элемент ИЛИ .,, первый триггер 5, второй триггёр 6, элементы ИСКЛЮЧАЮЩЕЕ ИЛИ 7-10, элемент И 11, вычитающий счетчик 12, регистр 13 основани , регистр 14 показател , группу элементов ШШ 15, вход 17 пуска устройства , вход 18 тактовых импульсов, группу элементов И 19. Устройство работает следующим образом . В исходном состо нии устройства. счетчики 1, ,, 3 и 12 обнулены. Триггеры 5 и 6 наход тс в единич ных состо ни х. На входе элемента И 11 находитс сигнал запрета. Параллельным переносом в реверсивный 1 и вычитающий 12 счетчики из регистра 13 основани вводитс число, равное основанию степени, а в счетчик 3- числ соответствующее показателю степени ми нус единица, из регистра 14 показател Сигналом на входе пуска 17 триггер 6 переводитс в нулевое состо ние и на вход элеме«та И 11 поступает сигнал разрешени . Триггер 5 пере водитс в нулевое, состо ние и сигна . разрешени подаетс на элементы ИС1 КгаоЧАЮЩЕЕ ИЛИ 9 и 10. Поступающие на тактовый вход 18 устройства импульсы через элемент ИСКЛЮЧАЩЕЕ ИЛИ 9 прох д т на суммирующий вход реверсивного счетчика 2, а через элемент И 11 на счетньй вход вычитающего счетчика 12. Реверсивный сче,тчик 1 работает на вычитание, а реверсивный счетчик 2 - на сложение. После вычитани из счетчика 12 чИ ла на его выходе по вл етс сигнал, I который поступает на вход записи сче чина 12 и. Проход через элемент ИС КЛЮЧАВДЕЕ ИЛИ 10, на вычитающий вход реверсивного счётчика 1. При этом из числа, наход щегос в счетчике 1, вьмитаетс единица а в счетчик 12 вновь записываетс число из регистра 13 основани . При следующем обнулении счетчика 12 из 862 счетчика 1 вычитаетс единица описанным способом до тех пор, пока не вычтетс последн единица. В этот момент на выходе счетчика 1 по вл етс сигнал, поступающий на вход триггера 5и через элемент ШШ 4 на счетный вход счетчика 3. При этом из последнего вычитаетс единица, триггер 5 переключаетс в единичное состо ние, тем самымм запреща прохождение сигналов через элементы ИСКЛЮЧАЩЕЕ ИЖ 9 и 10. Сигнал разрешени подаетс теперь на -элементы ИСКЛЮЧАЮЩЕЕ ИЛИ 7 и 8. В данный момент времени счетчик 1 начнет работать на сложение, а счетчик 2 - на вычитание. На вход счетчика 2 входные импульсы поступают через элемент 9 в течение всего описываемого процесса, врем которого определ етс значением записанного в счетчике 1 числа, повторенного число раз, равного записанному числу в счетчике 12. Число, записанное в счетчике 2, равно квадрату числа, записанного в счетчике 1. Далее устройство работает аналогичным образом. На вход счетчика 1 входные импульсы поступают в течение всего процесса вычитани числа из счетчика 2. Врем это определ етс значением записанного в счетчике 2 числа, повторенного число раз, равного записанному числу в счетчике 12. Число, записанное в счетчике 1, равно числу , записанному в счетчике 1 первоначально , в третьей степени. При обнулении счетчика 2 сигнал с, его выхода через элемент ИЛИ 4 . поступает на вход счетчика 3 и триггер 5. При этом из счетчика 3 вычитаетс единица, триггер 5 переключаетс в нулевое состо ние, тем самым запреща прохождение сигналов через элементы ИЛИ 7 и 8. В этот момент времени счетчик 1 начинает работать на вычитание, а счетчик 2 - на сложение. Описываемые процессы продолжаютс до тех пор, пока из счетчика 3 не вычтетс последн единица. Тогда сигнал с его выхода переключит триггер 6в первоначальное состо ние. Сигналы обнулени с выходов счетчиков 1, 2, 3 и 12 подготавливают очередной этап вычислений . На выходе элементов И группы в этот момент регистрируетс код, равный числу, записанному в счетчике 1, в степени, определ емой числом, записанным в счетчик 3.11 The invention relates to computing and can be used in the development of digital computing machines for calculating power functions. The aim of the invention is to reduce hardware costs. The drawing shows a block diagram of the device. The device contains reversible counters 1 and 2, an insertable counter 3, the element OR. ,, the first trigger 5, the second trigger 6, the elements EXCLUSIVE OR 7-10, the element 11, the subtracting counter 12, the base register 13, the register of indicator 14, a group of elements ШШ 15, an input 17 for starting the device, an input 18 for clock pulses, a group for elements И 19. The device operates as follows. In the initial state of the device. counters 1, ,, 3, and 12 are cleared. Triggers 5 and 6 are in one state. At the input of the element 11, there is a prohibition signal. A parallel transfer to the reversible 1 and subtracting 12 counters from the base register 13 introduces a number equal to the base of the degree, and the number 3 corresponding to the power indicator minus one is entered into the 3-number counter, the trigger 6 at the start input 17 triggers the zero state and the input element ta and 11 receives a resolution signal. The trigger 5 is turned to zero, the state and the signal. the resolution is fed to the elements of the IC1 KGEA ORDER 9 and 10. The pulses arriving at the clock input 18 of the device are transmitted through the EXCLUSIVE OR 9 element to the summing input of the reversing counter 2, and through the element 11 to the counting input of the subtracting counter 12. Reverse shear, point 1 works on subtraction, and the reversible counter 2 - on addition. After subtracting 12 hours from the counter, a signal appears at its output, I, which is fed to the record entry 12 and. The passage through the ICLE KEY or 10 element to the subtracting input of the reversible counter 1. In this case, one is selected from the number in counter 1, and the number from base register 13 is again written to counter 12. Upon the next zeroing of the counter 12, from 862 counter 1, the unit is subtracted by the method described until the last unit is subtracted. At this moment, at the output of counter 1, a signal arrives at the input of flip-flop 5, and through the SHSh 4 element to the counting input of counter 3. One is subtracted from the latter, flip-flop 5 switches to one state, thereby prohibiting the passage of signals through the EXCLUSIVE elements IZH 9 and 10. The permission signal is now applied to the - EXCLUSIVE OR 7 and 8 elements. At this point in time, counter 1 will start to work on addition, and counter 2 to work on subtraction. The input pulses go to the input of counter 2 through element 9 during the entire described process, the time of which is determined by the value of the number recorded in the counter 1, repeated number of times equal to the recorded number in counter 12. The number recorded in counter 2 is equal to the square of the number recorded in the counter 1. Next, the device works in a similar way. The input pulses go to the input of counter 1 during the entire process of subtracting the number from counter 2. Time is determined by the value recorded in counter 2, a number repeated times equal to the recorded number in counter 12. The number recorded in counter 1 is equal to the number recorded in counter 1 initially, in the third degree. When counter 2 is reset, signal s, its output through the element OR 4. enters the input of counter 3 and trigger 5. In this case, one is subtracted from counter 3, trigger 5 switches to the zero state, thereby preventing signals from passing through the elements OR 7 and 8. At this time, counter 1 begins to work for subtraction, and counter 2 - on addition. The described processes continue until the last unit is subtracted from counter 3. Then the signal from its output switches the trigger 6 to the initial state. The zeroing signals from the outputs of counters 1, 2, 3 and 12 prepare the next stage of calculations. At the output of the AND elements of the group, a code equal to the number recorded in counter 1 is registered at this moment to the extent determined by the number recorded in counter 3.