{"id":1819,"date":"2014-10-21T20:36:00","date_gmt":"2014-10-22T01:36:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/insertar-codigo-de-programas-en-latex\/"},"modified":"2014-10-21T20:36:00","modified_gmt":"2014-10-22T01:36:00","slug":"insertar-codigo-de-programas-en-latex","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/insertar-codigo-de-programas-en-latex\/","title":{"rendered":"Insertar c\u00f3digo de programas en Latex"},"content":{"rendered":"<p><span style=\"font-family: Verdana, sans-serif;\">Para insertar c\u00f3digo en sus documentos latex, el documento debe de estar estructurado m\u00e1s o menos de la siguiente manera:<\/span><br \/><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><span style=\"font-family: Verdana, sans-serif;\">En este ejemplo todo el c\u00f3digo y el cuerpo del documento est\u00e1 en el archivo principal, si ustedes lo desean lo pueden separar.<\/span><br \/><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><\/p>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><!--StartFragment--><span style=\"color: #606060;\">%https:\/\/www.sharelatex.com\/learn\/Code_listing<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">documentclass<\/span><span style=\"color: black;\">{article}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">usepackage<\/span><span style=\"color: black;\">[utf8]{inputenc}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">usepackage<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">listings<\/span><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">usepackage<\/span><span style=\"color: black;\">{color}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">definecolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">codegreen<\/span><span style=\"color: black;\">}{rgb}{0,0.6,0}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">definecolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">codegray<\/span><span style=\"color: black;\">}{rgb}{0.5,0.5,0.5}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">definecolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">codepurple<\/span><span style=\"color: black;\">}{rgb}{0.9,0.5,0.0}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">definecolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">backcolour<\/span><span style=\"color: black;\">}{rgb}{0.95,0.95,0.92}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">definecolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">mygreen<\/span><span style=\"color: black;\">}{rgb}{0,0.6,0}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">definecolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">mygray<\/span><span style=\"color: black;\">}{rgb}{0.5,0.5,0.5}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">definecolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">mymauve<\/span><span style=\"color: black;\">}{rgb}{0.58,0,0.82}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">lstset<\/span><span style=\"color: black;\">{ <\/span><span style=\"color: #606060;\">%<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  backgroundcolor=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{white},   <\/span><span style=\"color: #606060;\">% choose the background color; you must add usepackage{color} or usepackage{xcolor}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">basicstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">footnotesize,<\/span><span style=\"color: black;\">        <\/span><span style=\"color: #606060;\">% the size of the fonts that are used for the code<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">breakatwhitespace<\/span><span style=\"color: black;\">=false,         <\/span><span style=\"color: #606060;\">% sets if automatic breaks should only happen at whitespace<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">breaklines<\/span><span style=\"color: black;\">=true,                 <\/span><span style=\"color: #606060;\">% sets automatic line breaking<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">captionpos<\/span><span style=\"color: black;\">=b,                    <\/span><span style=\"color: #606060;\">% sets the caption-position to bottom<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">commentstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{red},    <\/span><span style=\"color: #606060;\">% comment style<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">deletekeywords<\/span><span style=\"color: black;\">={...},            <\/span><span style=\"color: #606060;\">% if you want to delete keywords from the given language<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">escapeinside<\/span><span style=\"color: black;\">={<\/span><span style=\"color: maroon;\"><\/span><span style=\"color: black; text-decoration: underline;\">%*<\/span><span style=\"color: black;\">}{*)},          <\/span><span style=\"color: #606060;\">% if you want to add LaTeX within your code<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">extendedchars<\/span><span style=\"color: black;\">=true,              <\/span><span style=\"color: #606060;\">% lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  frame=single,                    <\/span><span style=\"color: #606060;\">% adds a frame around the code<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">keepspaces<\/span><span style=\"color: black;\">=true,                 <\/span><span style=\"color: #606060;\">% keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">keywordstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{green},       <\/span><span style=\"color: #606060;\">% keyword style<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">language<\/span><span style=\"color: black;\">=C,                 <\/span><span style=\"color: #606060;\">% the language of the code<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">morekeywords<\/span><span style=\"color: black;\">={*,...},            <\/span><span style=\"color: #606060;\">% if you want to add more keywords to the set<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">numbers<\/span><span style=\"color: black;\">=left,                    <\/span><span style=\"color: #606060;\">% where to put the line-numbers; possible values are (none, left, right)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">numbersep<\/span><span style=\"color: black;\">=<\/span><span style=\"color: black; text-decoration: underline;\">5pt<\/span><span style=\"color: black;\">,                   <\/span><span style=\"color: #606060;\">% how far the line-numbers are from the code<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">numberstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">tinycolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">mygray<\/span><span style=\"color: black;\">}, <\/span><span style=\"color: #606060;\">% the style that is used for the line-numbers<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">rulecolor<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{black},         <\/span><span style=\"color: #606060;\">% if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">showspaces<\/span><span style=\"color: black;\">=false,                <\/span><span style=\"color: #606060;\">% show spaces everywhere adding particular underscores; it overrides 'showstringspaces'<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">showstringspaces<\/span><span style=\"color: black;\">=false,          <\/span><span style=\"color: #606060;\">% underline spaces within strings only<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">showtabs<\/span><span style=\"color: black;\">=false,                  <\/span><span style=\"color: #606060;\">% show tabs within strings adding particular underscores<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">stepnumber<\/span><span style=\"color: black;\">=1,                    <\/span><span style=\"color: #606060;\">% the step between two line-numbers. If it's 1, each line will be numbered<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">stringstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">mymauve<\/span><span style=\"color: black;\">},     <\/span><span style=\"color: #606060;\">% string literal style<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">tabsize<\/span><span style=\"color: black;\">=2,                       <\/span><span style=\"color: #606060;\">% sets default tabsize to 2 spaces<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  title=<\/span><span style=\"color: maroon;\">lstname<\/span><span style=\"color: black;\">                   <\/span><span style=\"color: #606060;\">% show the filename of files included with lstinputlisting; also try caption instead of title<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">lstdefinestyle<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">mystyle<\/span><span style=\"color: black;\">}{<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    backgroundcolor=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">backcolour<\/span><span style=\"color: black;\">},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">commentstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{red},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">keywordstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{blue},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">numberstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">tinycolor<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">codegray<\/span><span style=\"color: black;\">},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">stringstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">codepurple<\/span><span style=\"color: black;\">},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">basicstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">footnotesize,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">breakatwhitespace<\/span><span style=\"color: black;\">=false,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">breaklines<\/span><span style=\"color: black;\">=true,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">captionpos<\/span><span style=\"color: black;\">=b,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">keepspaces<\/span><span style=\"color: black;\">=true,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">numbers<\/span><span style=\"color: black;\">=left,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">numbersep<\/span><span style=\"color: black;\">=10pt,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">showspaces<\/span><span style=\"color: black;\">=false,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">showstringspaces<\/span><span style=\"color: black;\">=false,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">showtabs<\/span><span style=\"color: black;\">=false,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">    <\/span><span style=\"color: black; text-decoration: underline;\">tabsize<\/span><span style=\"color: black;\">=2<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">lstdefinestyle<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">customc<\/span><span style=\"color: black;\">}{<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">belowcaptionskip<\/span><span style=\"color: black;\">=1<\/span><span style=\"color: maroon;\">baselineskip,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">breaklines<\/span><span style=\"color: black;\">=true,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  frame=L,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">xleftmargin<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">parindent,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">language<\/span><span style=\"color: black;\">=C,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">showstringspaces<\/span><span style=\"color: black;\">=false,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">basicstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">footnotesizettfamily,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">keywordstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">bfseriescolor<\/span><span style=\"color: black;\">{green!40!black},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">commentstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">itshapecolor<\/span><span style=\"color: black;\">{purple!40!black},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">identifierstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{black},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">stringstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">color<\/span><span style=\"color: black;\">{orange},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">lstdefinestyle<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">customasm<\/span><span style=\"color: black;\">}{<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">belowcaptionskip<\/span><span style=\"color: black;\">=1<\/span><span style=\"color: maroon;\">baselineskip,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  frame=L,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">xleftmargin<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">parindent,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">language<\/span><span style=\"color: black;\">=[<\/span><span style=\"color: black; text-decoration: underline;\">x86masm<\/span><span style=\"color: black;\">]<\/span><span style=\"color: black; text-decoration: underline;\">Assembler<\/span><span style=\"color: black;\">,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">basicstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">footnotesizettfamily,<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  <\/span><span style=\"color: black; text-decoration: underline;\">commentstyle<\/span><span style=\"color: black;\">=<\/span><span style=\"color: maroon;\">itshapecolor<\/span><span style=\"color: black;\">{purple!40!black},<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">lstset<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">escapechar<\/span><span style=\"color: black;\">=@,<\/span><span style=\"color: black; text-decoration: underline;\">style<\/span><span style=\"color: black;\">=<\/span><span style=\"color: black; text-decoration: underline;\">customc<\/span><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">lstset<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">style<\/span><span style=\"color: black;\">=<\/span><span style=\"color: black; text-decoration: underline;\">mystyle<\/span><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: maroon;\">lstset<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">literate<\/span><span style=\"color: black;\">=<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00e1}{{<\/span><span style=\"color: maroon;\">'a<\/span><span style=\"color: black;\">}}1 {\u00e9}{{<\/span><span style=\"color: maroon;\">'e<\/span><span style=\"color: black;\">}}1 {\u00ed}{{<\/span><span style=\"color: maroon;\">'i<\/span><span style=\"color: black;\">}}1 {\u00f3}{{<\/span><span style=\"color: maroon;\">'o<\/span><span style=\"color: black;\">}}1 {\u00fa}{{<\/span><span style=\"color: maroon;\">'u<\/span><span style=\"color: black;\">}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00c1}{{<\/span><span style=\"color: maroon;\">'A<\/span><span style=\"color: black;\">}}1 {\u00c9}{{<\/span><span style=\"color: maroon;\">'E<\/span><span style=\"color: black;\">}}1 {\u00cd}{{<\/span><span style=\"color: maroon;\">'I<\/span><span style=\"color: black;\">}}1 {\u00d3}{{<\/span><span style=\"color: maroon;\">'O<\/span><span style=\"color: black;\">}}1 {\u00da}{{<\/span><span style=\"color: maroon;\">'U<\/span><span style=\"color: black;\">}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00e0}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">a}}1 {\u00e8}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">e}}1 {\u00ec}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">i}}1 {\u00f2}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">o}}1 {\u00f9}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">u}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00c0}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">A}}1 {\u00c8}{{<\/span><span style=\"color: maroon;\">'E<\/span><span style=\"color: black;\">}}1 {\u00cc}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">I}}1 {\u00d2}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">O}}1 {\u00d9}{{<\/span><span style=\"color: maroon;\">`<\/span><span style=\"color: black;\">U}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00e4}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">a}}1 {\u00eb}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">e}}1 {\u00ef}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">i}}1 {\u00f6}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">o}}1 {\u00fc}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">u}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00c4}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">A}}1 {\u00cb}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">E}}1 {\u00cf}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">I}}1 {\u00d6}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">O}}1 {\u00dc}{{<\/span><span style=\"color: maroon;\">\"<\/span><span style=\"color: black;\">U}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00e2}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">a}}1 {\u00ea}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">e}}1 {\u00ee}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">i}}1 {\u00f4}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">o}}1 {\u00fb}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">u}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00c2}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">A}}1 {\u00ca}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">E}}1 {\u00ce}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">I}}1 {\u00d4}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">O}}1 {\u00db}{{<\/span><span style=\"color: maroon;\">^<\/span><span style=\"color: black;\">U}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u0153}{{<\/span><span style=\"color: maroon;\">oe<\/span><span style=\"color: black;\">}}1 {\u0152}{{<\/span><span style=\"color: maroon;\">OE<\/span><span style=\"color: black;\">}}1 {\u00e6}{{<\/span><span style=\"color: maroon;\">ae<\/span><span style=\"color: black;\">}}1 {\u00c6}{{<\/span><span style=\"color: maroon;\">AE<\/span><span style=\"color: black;\">}}1 {\u00df}{{<\/span><span style=\"color: maroon;\">ss<\/span><span style=\"color: black;\">}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u00e7}{{<\/span><span style=\"color: maroon;\">c<\/span><span style=\"color: black;\"> c}}1 {\u00c7}{{<\/span><span style=\"color: maroon;\">c<\/span><span style=\"color: black;\"> C}}1 {\u00f8}{{<\/span><span style=\"color: maroon;\">o<\/span><span style=\"color: black;\">}}1 {\u00e5}{{<\/span><span style=\"color: maroon;\">r<\/span><span style=\"color: black;\"> a}}1 {\u00c5}{{<\/span><span style=\"color: maroon;\">r<\/span><span style=\"color: black;\"> A}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">  {\u20ac}{{<\/span><span style=\"color: maroon;\">EUR<\/span><span style=\"color: black;\">}}1 {\u00a3}{{<\/span><span style=\"color: maroon;\">pounds<\/span><span style=\"color: black;\">}}1<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #0000cc;\">begin<\/span><span style=\"color: black;\">{document}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\">Aqu\u00ed se muestra un ejemplo en lenguaje Python, junto con su etiqueta que llevar\u00e1 el c\u00f3digo.<\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #0000cc;\">begin<\/span><span style=\"color: black;\">{lstlisting}<\/span><span style=\"color: #9a4d00;\">[<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">language<\/span><span style=\"color: #9a4d00;\">=<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">Python<\/span><span style=\"color: #9a4d00;\">, <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">caption<\/span><span style=\"color: #9a4d00;\">=C\u00f3digo de ejemplo en <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">Python<\/span><span style=\"color: #9a4d00;\">]<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">import <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">numpy<\/span><span style=\"color: #9a4d00;\"> as <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">np<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">def <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">incmatrix<\/span><span style=\"color: #9a4d00;\">(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">genl1<\/span><span style=\"color: #9a4d00;\">,<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">genl2<\/span><span style=\"color: #9a4d00;\">):<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    m = len(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">genl1<\/span><span style=\"color: #9a4d00;\">)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    n = len(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">genl2<\/span><span style=\"color: #9a4d00;\">)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    M = None <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">#to<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">become<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">the<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">incidence<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">matrix<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\"> = <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">np<\/span><span style=\"color: #9a4d00;\">.<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">zeros<\/span><span style=\"color: #9a4d00;\">((<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">n*m<\/span><span style=\"color: #9a4d00;\">,1), int)  <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">#dummy<\/span><span style=\"color: #9a4d00;\"> variable<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">#compute<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">the<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">bitwise<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">xor<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">matrix<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">M1<\/span><span style=\"color: #9a4d00;\"> = <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">bitxormatrix<\/span><span style=\"color: #9a4d00;\">(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">genl1<\/span><span style=\"color: #9a4d00;\">)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">M2<\/span><span style=\"color: #9a4d00;\"> = <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">np<\/span><span style=\"color: #9a4d00;\">.<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">triu<\/span><span style=\"color: #9a4d00;\">(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">bitxormatrix<\/span><span style=\"color: #9a4d00;\">(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">genl2<\/span><span style=\"color: #9a4d00;\">),1) <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    for i in <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">range<\/span><span style=\"color: #9a4d00;\">(m-1):<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">        for j in <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">range<\/span><span style=\"color: #9a4d00;\">(i+1, m):<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">            [r,c] = <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">np<\/span><span style=\"color: #9a4d00;\">.<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">where<\/span><span style=\"color: #9a4d00;\">(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">M2<\/span><span style=\"color: #9a4d00;\"> == <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">M1<\/span><span style=\"color: #9a4d00;\">[i,j])<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">            for k in <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">range<\/span><span style=\"color: #9a4d00;\">(len(r)):<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\">[(i)<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*n<\/span><span style=\"color: #9a4d00;\"> + r[k]] = 1;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\">[(i)<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*n<\/span><span style=\"color: #9a4d00;\"> + c[k]] = 1;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\">[(j)<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*n<\/span><span style=\"color: #9a4d00;\"> + r[k]] = 1;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\">[(j)<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*n<\/span><span style=\"color: #9a4d00;\"> + c[k]] = 1;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                if M is None:<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                    M = <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">np<\/span><span style=\"color: #9a4d00;\">.copy(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\">)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                else:<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                    M = <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">np<\/span><span style=\"color: #9a4d00;\">.<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">concatenate<\/span><span style=\"color: #9a4d00;\">((M, <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\">), 1)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">                <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">VT<\/span><span style=\"color: #9a4d00;\"> = <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">np<\/span><span style=\"color: #9a4d00;\">.<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">zeros<\/span><span style=\"color: #9a4d00;\">((<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">n*m<\/span><span style=\"color: #9a4d00;\">,1), int)<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">    return M<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #0000cc;\">end<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">lstlisting<\/span><span style=\"color: black;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\">Un ejemplo de c\u00f3digo en C<\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #0000cc;\">begin<\/span><span style=\"color: black;\">{lstlisting}<\/span><span style=\"color: #9a4d00;\">[<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">language<\/span><span style=\"color: #9a4d00;\">=C, <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">caption<\/span><span style=\"color: #9a4d00;\">=<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">Gauss<\/span><span style=\"color: #9a4d00;\">-<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">Jordan<\/span><span style=\"color: #9a4d00;\"> en C]<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00; text-decoration: underline;\">#include<\/span><span style=\"color: #9a4d00;\"> &lt;<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">stdio<\/span><span style=\"color: #9a4d00;\">.h&gt;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00; text-decoration: underline;\">#include<\/span><span style=\"color: #9a4d00;\"> &lt;<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">stdlib<\/span><span style=\"color: #9a4d00;\">.h&gt;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00; text-decoration: underline;\">#include<\/span><span style=\"color: #9a4d00;\"> &lt;string.h&gt;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00; text-decoration: underline;\">#include<\/span><span style=\"color: #9a4d00;\"> &lt;<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">ctype<\/span><span style=\"color: #9a4d00;\">.h&gt;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00; text-decoration: underline;\">#include<\/span><span style=\"color: #9a4d00;\"> &lt;<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">ncurses<\/span><span style=\"color: #9a4d00;\">.h&gt;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">\/<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*Declaraci\u00f3n<\/span><span style=\"color: #9a4d00;\"> de procedimientos y <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">funciones*<\/span><span style=\"color: #9a4d00;\">\/<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">void <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">gausJordan<\/span><span style=\"color: #9a4d00;\">(float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">**matriz<\/span><span style=\"color: #9a4d00;\">,int n,float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*raices<\/span><span style=\"color: #9a4d00;\">);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">void <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">imprimirMatriz<\/span><span style=\"color: #9a4d00;\">(float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*raices<\/span><span style=\"color: #9a4d00;\">,int n);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">void <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">leerValores<\/span><span style=\"color: #9a4d00;\">(float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">**matriz<\/span><span style=\"color: #9a4d00;\">,int n);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">\/<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*Funci\u00f3n<\/span><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">principal*<\/span><span style=\"color: #9a4d00;\">\/<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">int <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">main<\/span><span style=\"color: #9a4d00;\">(){<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> int n;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">**matriz<\/span><span style=\"color: #9a4d00;\">,<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*raices<\/span><span style=\"color: #9a4d00;\">;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">printf<\/span><span style=\"color: #9a4d00;\">(\"Ingrese el n\u00famero de ecuaciones (n): \");<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">scanf<\/span><span style=\"color: #9a4d00;\">(\"%d\",&amp;n);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">getchar<\/span><span style=\"color: #9a4d00;\">();<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> matriz=(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">float**<\/span><span style=\"color: #9a4d00;\">) <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">malloc<\/span><span style=\"color: #9a4d00;\"> (<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">sizeof<\/span><span style=\"color: #9a4d00;\"> (<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">float*<\/span><span style=\"color: #9a4d00;\">)<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*n<\/span><span style=\"color: #9a4d00;\">);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">raices<\/span><span style=\"color: #9a4d00;\">=(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">float*<\/span><span style=\"color: #9a4d00;\">) <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">malloc<\/span><span style=\"color: #9a4d00;\"> (<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">sizeof<\/span><span style=\"color: #9a4d00;\"> (<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">float*<\/span><span style=\"color: #9a4d00;\">)<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*n<\/span><span style=\"color: #9a4d00;\">);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">leerValores<\/span><span style=\"color: #9a4d00;\">(matriz,n);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">gausJordan<\/span><span style=\"color: #9a4d00;\">(matriz,n,<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">raices<\/span><span style=\"color: #9a4d00;\">);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">printf<\/span><span style=\"color: #9a4d00;\">(\"Soluci\u00f3n nn\");<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">imprimirMatriz<\/span><span style=\"color: #9a4d00;\">(<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">raices<\/span><span style=\"color: #9a4d00;\">,n);<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">getchar<\/span><span style=\"color: #9a4d00;\">();<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> return 0;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">\/<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*Procedimiento<\/span><span style=\"color: #9a4d00;\"> para mostrar en pantalla los elementos de la <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">matriz*<\/span><span style=\"color: #9a4d00;\">\/<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">void <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">imprimirMatriz<\/span><span style=\"color: #9a4d00;\">(float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*raices<\/span><span style=\"color: #9a4d00;\">,int n){<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> int i;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> for(i=0;i&lt;n;i++){<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">  \/*alg\u00fan otro c\u00f3digo aqu\u00ed*\/<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> }<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><br \/><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">\/<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*Procedimiento<\/span><span style=\"color: #9a4d00;\"> que realiza el proceso de <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">Gauss<\/span><span style=\"color: #9a4d00;\">-<\/span><span style=\"color: #9a4d00; text-decoration: underline;\">Jordan*<\/span><span style=\"color: #9a4d00;\">\/<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">void <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">gausJordan<\/span><span style=\"color: #9a4d00;\">(float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">**matriz<\/span><span style=\"color: #9a4d00;\">,int n,float <\/span><span style=\"color: #9a4d00; text-decoration: underline;\">*raices<\/span><span style=\"color: #9a4d00;\">){<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> int i,j,k;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> float termino;<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> for(i=0;i&lt;n;i++){<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">  \/*tu c\u00f3digo aqu\u00ed*\/<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\"> }<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #9a4d00;\">}<\/span><\/pre>\n<pre style=\"-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;\"><span style=\"color: #0000cc;\">end<\/span><span style=\"color: black;\">{<\/span><span style=\"color: black; text-decoration: underline;\">lstlisting<\/span><span style=\"color: black;\">}<\/span><\/pre>\n<p><\/p>\n<pre><span style=\"color: #0000cc;\">end<\/span>{document}<!--EndFragment--><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Para insertar c\u00f3digo en sus documentos latex, el documento debe de estar estructurado m\u00e1s o menos de la siguiente manera:En este ejemplo todo el c\u00f3digo y el cuerpo del documento est\u00e1 en el archivo principal, si ustedes lo desean lo pueden separar. %https:\/\/www.sharelatex.com\/learn\/Code_listing documentclass{article} usepackage[utf8]{inputenc} usepackage{listings} usepackage{color} definecolor{codegreen}{rgb}{0,0.6,0} definecolor{codegray}{rgb}{0.5,0.5,0.5} definecolor{codepurple}{rgb}{0.9,0.5,0.0} definecolor{backcolour}{rgb}{0.95,0.95,0.92} definecolor{mygreen}{rgb}{0,0.6,0} definecolor{mygray}{rgb}{0.5,0.5,0.5} definecolor{mymauve}{rgb}{0.58,0,0.82} lstset{ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1441,618,1440,11,1369],"tags":[],"class_list":["post-1819","post","type-post","status-publish","format-standard","hentry","category-code-program","category-codigo","category-codigo-de-programas","category-latex","category-latex-code"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1819"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1819\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}