Euler's identity: e^(iπ) = −1

The five constants of mathematics in one line — and the one line a scientific calculator can check digit for digit.

Arithmetic and functions · Level: Classic result · Updated on 2026-11-09

Euler's formula says e^(iθ) = cos θ + i·sin θ. Put θ = π and you get cos π + i·sin π, which is −1 + 0i. Written as e^(iπ) + 1 = 0 it ties together e, i, π, 1 and 0 — the constants from three different branches of mathematics, in one equation with nothing left over.

Type it as the calculator sees it and you get −1 exactly. Add the +1 and the screen changes again: the real part is 0, and what survives is an imaginary remainder of 1.2246467991474e−16 i. That is floating-point rounding in the sine of π, not a crack in the identity — and it is the clearest demonstration of machine precision you can get without writing any code.

Answer

−1

How to read it

Exact on the display. Type e^(i*pi)+1 instead and the screen prints the rounding residue as an imaginary part: 1.2246467991474e−16i.

Source

Leonhard Euler, Introductio in analysin infinitorum (1748), §XVIII

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.