Boolean AND in LaTeX (A \cdot B)

A⋅BA \cdot B
LaTeX command
A \cdot B
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Centred dot between two variables, the engineering notation for Boolean AND (logical conjunction).

Switching algebra and digital electronics write conjunction multiplicatively: A \cdot B, or simply AB, mirroring how AND behaves like multiplication on 0 and 1. In formal logic the same operation is written A \wedge B or A \land B. \cdot is a binary operator, so it already gets medium spacing; do not use a period, which in math mode is punctuation-like and sits on the baseline. Many textbooks drop the dot entirely in sum-of-products expressions such as AB + \overline{A}C, keeping \cdot only where juxtaposition would be ambiguous, for example between multi-letter signal names.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

F=A⋅B+A‾⋅CF = A \cdot B + \overline{A} \cdot C
\documentclass{article}
\begin{document}
Boolean AND: $A \cdot B$

\[ F = A \cdot B + \overline{A} \cdot C \]
\end{document}

Related symbols

All 부울 대수 →

Frequently asked questions

How do I write Boolean AND in LaTeX?
Type A \cdot B in math mode, for example $F = A \cdot B + \overline{A} \cdot C$. It works in plain LaTeX without loading any package.
Which package do I need for A \cdot B?
None. A \cdot B is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use A \cdot B in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $A \cdot B$ in running text.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기