Senin, 28 Oktober 2024

Matematics Set Operation In Latex 2

Matematics Set Operation in this post consist of:
  • Set A picture
  • Complement Set A picture
  • A union B picture
  • A intersect B picture
  • Subset picture
  • Disjoint Set picture
  • Difference Set picture

Complement Set A picture

Type this following Latex source code in the Latex editor:
%!TEX TS-program=pdflatex
%!TEX encoding=UTF-8 Unicode
%
% File name: diaVenns1-2.tex
% Description:
% The Set operations in diagram venn
%
\documentclass[12pt,a4paper]{report}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{0.25pt}
\begin{document}
%%%title page
\centering \begin{tikzpicture}
\node[font=\bfseries\Huge] at(0,0) {$Set$};
\node[font=\bfseries\Huge] at(0,-1) {$Operations$};
 \end{tikzpicture}

%Complement A picture
%A\verb!$\prime$! the complement of A
\begin{tikzpicture}
% Universal set U
\draw[fill=blue!20, even odd rule, pattern=dots] (-2, -2) rectangle (4, 2);
% title
\node[font=\bfseries,fill=white!20] at(1,1.5) {A$^\prime$ the complement of A};
%draw Set A
\draw[fill=white!30,thick] (0.3,-0.10) circle(1.3)  node[above,fill=white!30] {$A$};
%draw Set B
\draw[thick] (2.,-0.10) circle (1.3) node[above,fill=white!20] {$\mathbf{B}$};

% Draw the Universal Label
\node[font=\bfseries,fill=white!30] at (3.5,-1.7) {\textbf{U}};
\end{tikzpicture}

\end{document}
Save file as diaVenn1-2.tex

Output






<< Back to Class 11 Math

type in latex, write in latex, draw latex, diagram venn, mathematical equation, venn diagram, math diagram

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts