# The device for calculating trigonometric functions

(57) Abstract:

Usage: in the information-measuring systems for computing the values of trigonometric functions. The invention is: to improve the accuracy of conversion to calculate the trigonometric functions sin x and cos x, sec x and cosec x, tg x and ctg x use trigonometric Converter with two outputs corresponding functions operating in a limited range of variation of the argument x, for example 0 x /4. Work in a limited range of variation of the argument x can reduce the error of each of the trigonometric converters, which determine the accuracy of the transformation in the range of variation of the argument x in the range from 0 to /2. This device uses known trigonometric ratios, for example with-cosine computing sin x = cos (90^{o}- x or cos x = sin (90

^{o}- x). The device comprises a controlled amplitude detector, trigonometric Converter switch. 1 C. p. F.-ly, 3 ill. The invention relates to measuring technique and can be used in various information-measuring systems, when you need to determine the value of the trigonometric functions sin X and cos X, sec is consistent in principle piecewise linear approximation of the given functions. The Converter includes an operational amplifier with nonlinear elements in the feedback circuit.The disadvantage of this device is the low accuracy of the approximation.For example, the well-known sine-cosine Converter, in which the approximation of the given function is a ratio of polynomials of the third degree. The Converter contains several multiplier-divider blocks, a few adders and scaling elements.The disadvantage of this device is the low accuracy of the transformation due to the significant instrumental error made by a relatively large number of blocks, performing the approximation.Know another device for calculating trigonometric functions containing two out phase-sensitive rectifier United and consistent time-pulse Converter, the pulse shaper, the integrating amplifier and the amplifier-limiter as well as a generator of sinusoidal oscillations.This device has an error due to drift of the integrator.A device for sine-cosine transform, comprising a generator of the reference sine wave is which are the outputs of the voltage, proportional to the sine and cosine of the input signal, and the control inputs are combined and connected via the first driver to the output of the time-pulse Converter, the first input connected to the first input device, in addition, the device contains a second shaper, time-pulse dividers, pulser, the comparison element, and an operational amplifier, the reference DC voltage and the source voltage, the magnitude of which varies in time.This device allows, in addition to voltages proportional to the sine and cosine, to generate a voltage proportional to the second input voltage, multiplied by the value of the tangent of the first voltage. However, the use of a controlled divider, the output of which is connected to the information input of the second block of the sample and hold, breaks the symmetry in the formation of voltage sine and cosine, with a controlled voltage divider cannot provide high accuracy when the input signal in a wide dynamic range, which leads to errors at the output of the second unit of sampling and storage. In addition, two independent phase shifter also violate simmetrichnym measuring errors.The closest similar technical characteristics, is a device for trigonometric transformations that contains one United amplitude detector, an adder and trigonometric Converter, and the second input of the adder is connected to the reference voltage, and the output of the trigonometric Converter coupled to the output device.The device uses the well-known trigonometric relation sin X cos(90

^{o}-X) or cos X sin(90

^{o}-X). As trigonometric Converter usually use sine inverter, operating in the range of change of argument of 0 < X < 90

^{about}using the values of the function cos X in the extended range of variation of the argument. Similarly, we can obtain the value of the functions sin X, using the cosine Converter as the primary source trigonometric Converter.This implementation allows you to define the desired function, and the error is determined mainly by the accuracy of the used primary trigonometric Converter. Error analysis trigonometric Converter operating with arguments 0 < X < 90

_{op}. The voltage U

_{op}choose such size that when the voltage at the input of the U

_{I}= 0 the voltage on the first and second outputs trigonometric Converter 2 were, respectively, U

_{2-1}(U

_{I}=0)= 0 and U

_{2-2}(U

_{I}=0)= U

_{o(max)}.When the input voltage U

_{I}U

_{op/2}the voltage on the first and Strom outputs trigonometric Converter 2, respectively, the voltage U

_{3-1}(U

_{I}U

_{op/2)}0,7071 U

_{o(max)}and U

_{3-2}(U

_{I}U

_{op/2)}0,7071 U

_{o(max)}, i.e., the reference voltage corresponds to the maximum value of the argument value 90

^{about}/2.Using control logic voltages U

_{5}comparator 6 at the first output controlled amplitude detector 1 when changing napryajennyh voltages U

_{op/2}< U

_{I}< U

_{op}allocate the voltage U

_{1-1}U

_{op}U

_{I}from the output of the adder 4.The second output controlled amplitude detector 1 form the control logic voltage U

_{1-2}that control the operation of the switches 3 and 5 in accordance with the diagram of Fig.3, illustrating the operation of the device to calculate the functions sin X and cos X.Input voltage U

_{XB}to the input of the comparator 6 and the second input of the adder 4 and the switch 5. At the output of the adder 4 receives the voltage U

_{4}U

_{op}-U

_{I}and at the output of the comparator 6, the voltage U

_{6}coming to the third control input of the switch 5, and manage its operation in accordance with Fig.3.When the output voltage of the comparator 6, is equal to U

_{6}logical "0" or "1" on the first output controlled amplitude detector 1, respectively, at the output of the switch 5 receives the voltage U

_{5}=U

_{1-1}equal to the input U

_{I}or the difference between the U

_{op}U

_{I}. Thus, the operation of the device should be considered for two cases: first when 0 U

_{I}U

_{op/2}second when U

_{op/2}<U<SUB>Iop.In the first case on pervicnokislogo Converter 2 receives the voltage U

_{2-1}corresponding values of the function sine (when changing the argument from 0 to /4), i.e., U

_{2-1}f(sinX). On the second output trigonometric Converter 2 receives the voltage U

_{2-2}corresponding to the values of cosine functions (changing the argument from 0 to /4), i.e., U

_{2-2}f(cosX). These voltage U

_{2-1}U

_{2-2}come respectively into the first and second inputs of switch 3.For change of argument 0 X /4, i.e., when U

_{6}corresponds to a logical "0" output of the switch 3 receives a voltage from the first input and the second output of the switch 3 receives a voltage from the second input. So in this case U

_{3-1}U

_{2-1}f(sinX), U

_{3-2}U

_{2-2}f(cosX).In the second case, when U

_{6}corresponds to a logical "1" output of the switch 3 receives a voltage from the second input and second output of the switch 3 voltage with the first logon. Therefore, in this case for argument /4 < <X /2, we can get the voltage U

_{3-1}U

_{2-2}f[cos(90

^{o}-X)] f(sinX), U

_{3-2}U

_{2-1}f [sin(90

^{o}--X)] f(cos X).Therefore, for argument 0 X /2 on the first output device to receive the voltage U

_{3-1}f(sinX) U

_{max}sin X, and the second output asparagine, the respective functions of sec X and cosec X or tg X and ctg X enough instead of the sine-cosine Converter 2 to apply the appropriate trigonometric Converter operating in the range of variation of the argument from 0 to 4. In this case, uses the well-known trigonometric ratio sec X cosec (90

^{o}-X cosec X sec (90

^{o}-X, tg X ctg (90

^{o}-X) or ctg Xtg (90

^{o}-X).The improved accuracy is due to the fact that for the calculation of trigonometric functions using two trigonometric Converter, each of which operates in a limited range of variation of the argument X, for example 0 X /4. This allows to reduce the error of each of the trigonometric converters, the errors which determine the accuracy of the transformation in the range of variation of the argument X from 0 to /2.The device can be made on the standard elements using known electronic components. 1. The device for calculation of trigonometric functions containing trigonometric Converter and the amplitude detector, the input of which is the input device, characterized in that it introduced the switch, the amplitude detector is designed panel is d which is connected to the first output controlled amplitude detector, the second output of which is connected to the control input of the switch, the outputs of which are the outputs of the device.2. The device under item 1, characterized in that the controlled amplitude detector contains an adder, a switch, a comparator, and a reference voltage, the output of which is connected to the first input of the adder, the output of which is connected to the first information input, a control input connected to the output of the comparator, and the output is the output of the detector, whose input is connected to the second input of the adder to the input of the comparator and the second information input of the switch.

**Same patents:**

**FIELD: computer engineering; automation, data processing and measurement technology.**

**SUBSTANCE: proposed converter has two registers, NOT gate, angle-code-to-sine/cosine-code functional conversion unit, two digital-to-analog converters, reference voltage supply, pulse generator, counter, two capacitors, subtracting amplifier, two modulators, threshold unit, two selector switches, two buffer followers, threshold voltage supply, comparison circuit, D flip-flop, and reference code shaper; all these components enable functional control of converter during recording pulse time and supply of signal indicating normal or abnormal operation of converter to user thereby essentially raising its self-control ability and yielding profound and reliable information.**

**EFFECT: enhanced comprehensiveness of control and reliability of converter output data.**

**1 cl, 2 dwg**

FIELD: computer engineering, in particular, functional transformers of angle code to sine-cosine voltages, possible use in data processing systems.

SUBSTANCE: device contains block for functional transformation of angle code to code of sine and cosine, generator of impulse pack, NOT element, registers, support voltage source, digital-analog converter, switch, capacitors, buffer repeaters, modulators, threshold block.

EFFECT: increased precision of transformation.

2 cl, 2 dwg

FIELD: physics, computer engineering.

SUBSTANCE: invention relates to computer engineering, specifically special-purpose computers. The technical result is achieved by a device for calculating trigonometric functions, which comprises sine and cosine registers, increment registers of the same values, two converters for converting direct code into complementary code, connected, besides by connections between said units, with a clock pulse generator, a memory unit and an argument counter.

EFFECT: method of removing limitations on an argument of calculated functions in the range from 0 to + when calculating trigonometric functions.

1 dwg