Implementation method and device for calculating sine or cosine function

A technology of cosine function and realization method, which is applied in computing, electrical digital data processing, digital data processing components, etc.

Inactive Publication Date: 2020-10-27
HUNAN GREAT LEO MICROELECTRONICS CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem to be solved by the present invention is that: aiming at the technical problems existing in the prior art, the present invention provides an application with simple principle, high precision, little consumption of hardware resources, low calculation delay, and relatively small storage space occupied by coefficients. Realization method and device for calculating sine or cosine function

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method and device for calculating sine or cosine function
  • Implementation method and device for calculating sine or cosine function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0052] It should be emphasized that the calculation of the sine or cosine function discussed in the present invention is based on the content of the computer or chip processing end, that is, how to realize the calculation of the high-precision sine or cosine function by means of hardware technology, and at the same time ensure that the hardware performance The optimization on the hardware, the reduction on the hardware overhead, and the improvement of the precision under the condition of the hardware platform. In other words, the calculation of the sine or cosine function discussed in the present invention is not a simple calculation, but a calculation based on a hardware platform. This can be seen at a glance from the technical problem that the present invention will solve, purely from calculating, can not produce the various technic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an implementation method and device for calculating a sine or cosine function. The method comprises the steps: S1, enabling an input number to be mapped to a range of [0, pi / 4], and obtaining the function type of internal operation and the sign symbol of a result; S2, obtaining a constant result and a nearest estimation point according to the number mapped to the range of [0, pi / 4] in the S1; S3, obtaining an estimated value of a corresponding sine or cosine function, i.e., a coefficient required by polynomial calculation; S4, obtaining the distance from the number mapped to the range of [0, pi / 4] in the S1 to the nearest estimation point; S5, completing polynomial operation by utilizing the estimated value and the distance from the number mapped to the range of [0,pi / 4] to the nearest estimated point; and S6, selecting the number mapped to the range of [0, pi / 4], a constant result and a polynomial operation result, performing regularization and rounding processing, and performing outputting. The device is used for realizing the method. The method has the advantages of simple principle, high precision, low hardware resource consumption, low calculation delay, relatively small coefficient occupied storage space and the like.

Description

technical field [0001] The present invention mainly relates to the technical field, in particular to an implementation method and device for calculating sine or cosine functions. Background technique [0002] Sine and cosine functions are important components in science, technology and engineering applications. Compared with basic elementary functions, it has the characteristics of relatively complex implementation, large calculation delay, and various implementation methods. To obtain high-precision single-precision floating-point output results that meet the IEEE-754 standard, the cost is relatively higher. In the traditional technology, the main implementation methods include: coordinate rotation method (CORDIC: Coordinate Rotation Digital Computer), look-up table method and polynomial approximation method. Generally speaking, due to the slow convergence of the coordinate rotation method, many iterations are required to achieve high precision, the speed is slow, and the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F7/548
CPCG06F7/548
Inventor 万江华龙科莅陈虎
Owner HUNAN GREAT LEO MICROELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products