I am Charmie

メモとログ

Number sets in LaTeX

To write number sets such as real numbers ($latex \mathbb{R}$), we need to use additional package either amssymb or amsfonts. In preamble, just type

\usepackage{amssymb} or \usepackage{amsfonts}.

Then, we can use the command mathbb like \mathbb{set}.

  • Real numbers ($latex \mathbb{R}$) contain every number except complex numbers.
  • Natural numbers ($latex \mathbb{N}$) = {1, 2, 3, 4, ...}.
  • Whole numbers ($latex \mathbb{W}$) = {0, 1, 2, 3, 4, ...}.
  • Integers ($latex \mathbb{Z}$) = {..., -3, -2, -1, 0, 1, 2, 3, ...}.
  • Rational numbers ($latex \mathbb{Q}$) can be written as a ratio of two integers such as 1/2 and 3/7.
  • Irrational numbers ($latex \mathbb{I}$) contain all numbers that cannot be written as rational number: $latex \pi $ and $latex \sqrt{2}$.