Minggu, 06 Oktober 2024

Sistem Persamaan Linear Dua Variabel Dalam Latex

  1. Open the Latex editor.
  2. type this following Latex code in the Latex editor:
    % !TEX TS-program = pdflatex
    % !TEX encoding = UTF-8 Unicode
    %Typeset/Build program

    % ---------------------------------------------------------------
    % Standalone Class (This is a LaTeX2e document)
    % Linear Equation Systems,
    % with elimination and subtitution
    % ---------------------------------------------------------------
    \documentclass[multi=preview,margin=3]{standalone}
    \usepackage{amsmath}
    \usepackage{amsthm}
    \usepackage{amsfonts}
    \usepackage{fourier}
    \usepackage{enumitem}
    \begin{document}
    \preview
    %\section{Sistem Persamaan Linear Dua Variabel}
    \Huge{\textbf{Sistem Persamaan}}
    \endpreview

    \preview
    \Huge{\textbf{Linear Dua Variabel}} 
    \endpreview

    \preview
    \Large{}\noindent
    Nilai x dan y yang memenuhi \\
    \endpreview

    \preview
    sistem persamaan \textbf{3x + 2y = 8 }
    \endpreview

    \preview
    dan \textbf{2x - 4y = 0} adalah ... \\ \\
    \endpreview

    \preview
    \huge{}
    \boldmath
    \begin{minipage}{.5\textwidth} %
      \begin{enumerate}[label={\alph*}.]
        \item $x=2 ; y=1$
        \item $x=2 ; y=2$
      \end{enumerate}
    \end{minipage}
    \begin{minipage}{.5\textwidth}
      \begin{enumerate}[label={\alph{enumi}.}]
    \addtocounter{enumi}{2}
        \item $x=3 ; y=1/2$
        \item $x=-2 ; y=-1\quad $
      \end{enumerate}
    \end{minipage}
    \endpreview

    \preview
    \Huge{\textbf{Pembahasan}}
    %\section{Pembahasan}
    \endpreview

    \preview
    \Large{}
    \boldmath
    $\begin{aligned}
    3x + 2y = 8 \ldots\ldots (1) \\
    2x - 4y = 0  \ldots\ldots (2)
    \end{aligned}$
    \endpreview

    \preview
    Eliminasi y:
    \endpreview

    \preview
    $\begin{aligned}
      \begin{array}{r@{}l@{\quad}l@{\quad}l@{}l@{}c}
        3x + 2y & {}= 8  & \xrightarrow{\times 2} & 6x + 4y & {}= 16 \\[\jot]
        2x - 4y & {}= 0 & \xrightarrow{\phantom{\times 1}} & 2x - 4y & {}= 0 & ~\smash{\raisebox{.8\normalbaselineskip}{$+$}} \\
        \cline{4-5} \\[-9pt]
                &        &           & 8x {\,}    & {\,}= {\,} 16  \\[\jot]
                &        &           & {\ }{\,} x {\quad}     & {\,}= {\,}16/8 \\
                &        &           & {\ \,} x {\quad}     & {\,}= {\,}2
      \end{array}
    \end{aligned}$
    \endpreview

    \preview
    $\begin{array}{l}
    \mathrm{Substitusi\ x = 2} \\
    \mathrm{ke\ persamaan (1):}
    \end{array}$
    \endpreview

    \preview
    $
      \begin{array}{l@{\,}l@{\,}l@{\,}l@{\,}}
      3x     &+& 2y & = 8 \\
      3\cdot2&+& 2y & = 8 \\
      6 & + & 2y & = 8 \longrightarrow y=\dfrac{8-6}{2} \\ & & \quad & \,\quad\longrightarrow y = \frac{2}{2} 
    \\ & & & \,\quad\longrightarrow y = 1  
      \end{array}   
     $
    \endpreview

    \preview
      Jadi, x = 2 dan y = 1
    \endpreview
    \end{document}

  3. run the Typeset command or similar other command with pdfLatex
  4. to see the output, click Sistem Persamaan Linear Dua Variabel >

Bibliography

Matematika;Tim Progresif;Penerbit Erlangga
Ebook Soal;Tim Master Eduka;Genta Group
LaTeX ( Ebook );Addison-Wesley Professional/Pearson
The LaTeX;Packt Publishing

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts