ArticleslgStudy

computer science

CORDIC

CORDIC is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CORDIC rather than just read about it. In short: CORDIC, short for coordinate rotation digital computer, is a simple and efficient algorithm to calculate trigonometric functions, hyperbolic functions, square roots, multiplications, divisions, exponentials, and logarithms with arbitrary base, typically converging with one digit (or bit) per iteration. CORDIC is therefore an example of a digit-by-digit algorithm.

CORDIC — main illustration
CORDIC — illustration

Key takeaways

  • CORDIC belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CORDIC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CORDIC from memory before moving on to harder problems.

Reference excerpt

CORDIC, short for coordinate rotation digital computer, is a simple and efficient algorithm to calculate trigonometric functions, hyperbolic functions, square roots, multiplications, divisions, exponentials, and logarithms with arbitrary base, typically converging with one digit (or bit) per iteration. CORDIC is therefore an example of a digit-by-digit algorithm. The original system is sometimes referred to as Volder's algorithm. CORDIC and closely related methods known as pseudo-multiplication and pseudo-division or factor combining are commonly used when no hardware multiplier is available (e.g. in simple microcontrollers and field-programmable gate arrays or FPGAs), as the only operations they require are addition, subtraction, bitshift and lookup tables. As such, they all belong to the class of shift-and-add algorithms. In computer science, CORDIC is often used to implement floating-point arithmetic when the target platform lacks the hardware to multiply for cost or space reasons. This was the case for most early microcomputers based on processors like the MOS 6502 and Zilog Z80. Over the years, a number of variations on the concept emerged, including circular CORDIC (Jack E. Volder), linear CORDIC, hyperbolic CORDIC (John Stephen Walther), and generalized hyperbolic CORDIC (GH CORDIC) (Yuanyong Luo et al.),

Concept At a high level, the basic CORDIC algorithm involves applying a sequence of scaled rotations to a vector. The scale factors and angles of rotation are known in advance; only the direction of each rotation is dependent on the input. In rotation mode, a target rotation angle is taken as input, and the rotation directions are chosen so that the accumulated rotation angle approaches the target. The output is the final vector. In vectoring mode, a vector is taken as input, and the rotation directions are chosen so that the y coordinate of the vector approaches 0. The output is the total rotation angle. See Modes of operation for the full details. The scale factors and angles of rotation are chosen so that the scaled rotations can be computed using only addition, subtraction, and bit shifting. The angles are looked up in a table that has been computed in advance.

History Similar mathematical techniques were published by Henry Briggs as early as 1624 and Robert Flower in 1771, but CORDIC is better optimized for low-complexity finite-state CPUs. CORDIC was conceived in 1956 by Jack E. Volder at the aeroelectronics department of Convair out of necessity to replace the analog resolver in the B-58 bomber's navigation computer with a more accurate and faster real-time digital solution. Therefore, CORDIC is sometimes referred to as a digital resolver. In his research, Volder was inspired by a formula in the 1946 edition of the CRC Handbook of Chemistry and Physics:

K n R sin ⁡ ( θ ± φ ) = R sin ⁡ ( θ ) ± 2 − n R cos ⁡ ( θ ) , K n R cos ⁡ ( θ ± φ ) = R cos ⁡ ( θ ) ∓ 2 − n R sin ⁡ ( θ ) , {\displaystyle {\begin{aligned}K_{n}R\sin(\theta \pm \varphi )&=R\sin(\theta )\pm 2^{-n}R\cos(\theta ),\\K_{n}R\cos(\theta \pm \varphi )&=R\cos(\theta )\mp 2^{-n}R\sin(\theta ),\\\end{aligned}}}

… excerpt ends here. Continue reading the full article.

Illustrations

CORDIC illustration
CORDIC: An illustration of the CORDIC algorithm in progress
An illustration of the CORDIC algorithm in progress

Worked examples

Example 1 — a first encounter with CORDIC

Start with the simplest possible case. Write down what CORDIC claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CORDIC before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CORDIC ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CORDIC

In research
CORDIC appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CORDIC in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CORDIC is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer arithmetic, Digit-by-digit algorithms, Numerical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for CORDIC outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study CORDIC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CORDIC means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CORDIC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CORDIC in simple terms?

CORDIC, short for coordinate rotation digital computer, is a simple and efficient algorithm to calculate trigonometric functions, hyperbolic functions, square roots, multiplications, divisions, exponentials, and logarithms with arbitrary base, typically converging with one digit (or bit) per iterat…

Why does CORDIC matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CORDIC?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CORDIC.

Tags

  • Computer arithmetic
  • Digit-by-digit algorithms
  • Numerical analysis
  • Root-finding algorithms
  • Shift-and-add algorithms
  • Trigonometry

Keep exploring