FROM THE TOPICS LIBRARYISSUE 04

How calculatorscalculatetrigonometric ratios

From the unit circle to numerical algorithms.

Explore the topic

Calculators do not magically know trigonometric values.

01 — 05

From the unit circle.

01

The Big Idea

Calculators do not magically know trigonometric values.

They compute numerical approximations using mathematical ideas, precomputed values and efficient algorithms.

The value you see is an approximation, usually rounded to the number of decimal places shown on the screen.

02

What Is the Input?

You enter an angle, and the calculator interprets it as either degrees or radians depending on the current mode.

Degree mode (DEG)Radian mode (RAD)
sin(30) = 0.5sin(30) ≈ −0.9880
Interprets 30 as 30°.Interprets 30 as radians.
sin(30) = 0.5

Interprets 30 as 30°.

Always check the mode!

Most calculators show DEG or RAD on the screen. The same number can give completely different results.

03

Reducing the Angle

Calculators first convert the angle to a simpler, equivalent angle using periodicity and symmetry.

Sine and cosine have period 360° (or 2π radians):

sin(θ + 360°) = sin θ; cos(θ + 360°) = cos θ
sin(θ + 2π) = sin θ; cos(θ + 2π) = cos θ

They also use symmetry to move the angle to a standard range, for example:

0° ≤ θ ≤ 90° (or 0 ≤ θ ≤ π/2)

using identities such as

sin(180° − θ) = sin θ
cos(180° − θ) = −cos θ
04

Unit Circle Connection

On the unit circle, an angle θ corresponds to the point (cos θ, sin θ).

cos θ is the x-coordinate of the point.
sin θ is the y-coordinate of the point.

So calculating sin θ and cos θ means finding the coordinates of a point on the unit circle.

05

Simple Values

Calculators store exact values for common angles that come from geometry.

θ (degrees)sin θcos θ
0°01
30°1/2√3 / 2
45°√2 / 2√2 / 2
60°√3 / 21/2
90°10

These values are exact, so most calculators return them without using an approximation algorithm.

06 — 09

To numerical algorithms.

06

When the Angle Is Not Special

For most angles, there is no simple exact value. Calculators use numerical methods, such as:

These methods give a very accurate approximation efficiently.

  1. a lookup table with interpolation
  2. an iterative rotation method (such as CORDIC)
  3. a polynomial or series approximation
07

Lookup Table Idea

Calculators can store a table of precomputed values (for example, every 0.1° or 1°) and use interpolation to estimate values in between.

θ (degrees)sin θ
31.00.5150
32.00.5299
33.00.5446

To find sin(32.5°), the calculator can interpolate between the stored values for 32.0° and 33.0°.

Linear interpolation (idea):

sin(32.5°) ≈ 0.5299 + 0.5(0.5446 − 0.5299)
= 0.53725
08

CORDIC Idea

Many calculators use an iterative rotation method called CORDIC (Coordinate Rotation Digital Computer).

Repeated small rotations build up the angle θ.

Start from (1, 0) and repeatedly rotate by small, fixed angles using only addition, subtraction and bit-shift operations.
After many steps, the coordinates approximate (cos θ, sin θ).

09

Series Idea

Some calculators (and computer systems) use a polynomial or power series approximation after reducing the angle.

For example, for small x (in radians):

sin x ≈ x − x3/3! + x5/5! − x7/7! + ⋯

After angle reduction, the angle is small enough for this to work well.
A polynomial with carefully chosen coefficients can also be used for very high accuracy.

These approximations are fast and very accurate when combined with angle reduction.

10 — 12

Worked example: sin(32°)

10

Worked Example: sin(32°)

  1. Reduce the angle:
    32° is already in the range 0° to 90°.

1 / 5

11

Common Mistakes

Using the wrong mode (DEG or RAD).

Rounding too early in multi-step calculations.

Assuming every displayed value is exact.

Forgetting that tan x can be very large near 90°.

Not reducing angles (e.g. sin(390°) should be the same as sin(30°)).

12

Why tan x Is Different

Tangent is calculated from sine and cosine:

tan x = sin x / cos x

When x is close to 90° (or π/2), cos x is very close to zero, so tan x becomes very large.

Example: tan(89.9°) ≈ 573.0
⇒ tan(90°) is undefined.

Small changes in x near 90° can cause huge changes in tan x, so calculators may show very large numbers or an error (depending on the model) when cos x is too close to zero.

13

Challenge

Why might a calculator’s value for sin(30°) appear exact, while sin(1°) must be approximated?

Show hint +

Think about:
• special angles from geometry
• what values are stored
• the need for approximation for most other angles

14

HL Extension / Deeper Thought

Calculators work with more internal digits than they display (e.g. 10–15 decimal places).

This reduces rounding error in later calculations.

Approximations have a small error, but the error is usually far smaller than the last displayed decimal place.

Different calculators may use different algorithms (lookup tables, CORDIC, or polynomial approximation), but all give very high accuracy.

15 / YOUR NEXT STEP

Learn more.

Trigonometric ratios power modern technology.

Companion resources

Scan for companion resources

Scan to open this topic’s companion resources

Same idea.
Simpler mathematics.
Brighter solutions.

KEEP EXPLORING

Companion resources.

Choose your edition. Practise first, then explore the solutions.

02 / REVIEW

Teacher Edition

Questions with worked solutions.
Open to everyone once released.

Download Teacher PDF

Teacher editions are released three days after the student edition.

Download the four A3 posters (PDF)

THE ORIGINALS

The topic, on paper.

ORIGINAL POSTER

Open full size ↗