From a010905e6c9d70bc8d6496e707b3ede65dd49a50 Mon Sep 17 00:00:00 2001 From: Miguel Alejandro Salgado Zapien Date: Wed, 8 Nov 2023 16:03:04 -0800 Subject: [PATCH] Agregue binomio conjugado. --- src/d1-02-extras.tex | 65 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/d1-02-extras.tex diff --git a/src/d1-02-extras.tex b/src/d1-02-extras.tex new file mode 100644 index 0000000..43916bd --- /dev/null +++ b/src/d1-02-extras.tex @@ -0,0 +1,65 @@ +\documentclass{article} + +\usepackage[utf8]{inputenc} +\usepackage[dvipsnames]{xcolor} +\usepackage{tikz} + + +% -- Cuerpo del documento +\begin{document} + \section{Ejemplo} + + \begin{figure}[h!] + \centering + \begin{tikzpicture} + \draw[thick, OliveGreen, fill=OliveGreen!25] (0, 0) rectangle (3, 3); + \node at (1.5, 1.5) {$a^2$}; + + \draw[thick, OliveGreen, fill=OliveGreen!25] (3, 3) rectangle (4, 4); + \node at (3.5, 3.5) {$b^2$}; + + \draw[thick, OliveGreen, fill=OliveGreen!10] (0, 3) rectangle (3, 4); + \node at (1.5, 3.5) {$ab$}; + + \draw[thick, OliveGreen, fill=OliveGreen!10] (3, 0) rectangle (4, 3); + \node at (3.5, 1.5) {$ab$}; + + \draw[|-|] ( 0,-0.5) to node[fill = white] {$a$} ( 3,-0.5); + \draw[|-|] ( 3,-0.5) to node[fill = white] {$b$} ( 4,-0.5); + \draw[|-|] ( -0.5, 0) to node[fill = white, rotate=90] {$a$} ( -0.5, 3); + \draw[|-|] ( -0.5, 3) to node[fill = white, rotate=90] {$b$} ( -0.5, 4); + \end{tikzpicture} + \caption{Representacion grafica del binomio cuadrado.} + \end{figure} + + \begin{figure}[h!] + \centering + \begin{tikzpicture} + \def\myColor {NavyBlue} + \def\A {3} + \def\B {1} + + \draw[dashed, gray] (0, 0) rectangle +(\A, \A); + \draw[dashed, gray] (\A - \B, 0) rectangle +(\B, \A - \B); + + \draw[thick, \myColor, fill=\myColor!25] + (0, 0) rectangle +(\A - \B, \A); + \node at (0.5*\A - 0.5*\B, 0.5*\A) {$A_2$}; + + \draw[thick, \myColor, fill=\myColor!25] + (0, \A) rectangle +(\A - \B, \B); + \node at (0.5*\A - 0.5*\B, \A + 0.5*\B) {$A_2$}; + + \draw[|-|] (0, -0.25) to node[fill=White] {$a$} (\A, -0.25); + \draw[|-|] (\A - \B, -0.5) to node[fill=White] {$b$} (\A, -0.5); + + \draw[|-|] (-0.5, 0) to node[fill=White] {$a$} (-0.5, \A); + \draw[|-|] (-0.5, \A) to node[fill=White] {$b$} (-0.5, \A + \B); + + + \end{tikzpicture} + \caption{Binomio conjugado} + \end{figure} + +\end{document} +