{"id":3551,"date":"2017-07-14T11:10:17","date_gmt":"2017-07-14T16:10:17","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/matg1013\/?p=3551"},"modified":"2026-04-01T17:46:58","modified_gmt":"2026-04-01T22:46:58","slug":"interpolar-tortuga-galapagos","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/algoritmos101\/mn-u04\/interpolar-tortuga-galapagos\/","title":{"rendered":"4.8.3 Interpolar - tortuga Gal\u00e1pagos"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Ejercicio de interpolaci\u00f3n<\/h2>\n\n\n\n<figure class=\"wp-block-image alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"http:\/\/blog.espol.edu.ec\/algoritmos101\/files\/2026\/03\/espol_polito01.gif\" alt=\"espol polito logo\" class=\"wp-image-23039\" style=\"width:200px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Desarrollar por grupos<\/li>\n\n\n\n<li>integrar soluciones en un mismo gr\u00e1fico<\/li>\n\n\n\n<li>mostrar polinomios y rangos de existencia<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" src=\"http:\/\/blog.espol.edu.ec\/algoritmos101\/files\/2017\/07\/mascotaTortugaGalapagos01.gif\" alt=\"mascota Tortuga Gal\u00e1pagos interpolar por partes\" class=\"wp-image-23312\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code alignwide\"><code># caparazon superior\nxiA = &#091;113., 117, 134, 153, 169, 184, 194, 203]\nfiA = &#091;127., 141, 161, 166, 160, 155, 140, 132]\n\n# caparazon inferior 1\nxiB = &#091;113., 123, 130, 149, 182, 197, 208, 211]\nfiB = &#091;127., 116, 112, 107, 110, 114, 112, 108]\n\n# caparazon inferior 2\nxiC = &#091;107., 114, 120, 143, 170, 192, 210]\nfiC = &#091;124., 114, 108, 99, 99, 106, 107]\n\n# Patas 01\nxiD = &#091;110., 116, 120, 121, 134, 143, 153, 168, 173, 177, 181, 188, 194, 201, 205, 210, 214, 218]\nfiD = &#091;92., 86, 89, 86, 87, 95, 91, 93, 85, 85, 83, 86, 88, 86, 91, 87, 92, 92]\n\n# Patas 02\nxiE = &#091;109., 115, 117, 120, 125, 130, 134, 138, 142, 145, 150, 152, 154]\nfiE = &#091;91., 87, 82, 82, 78, 78, 81, 78, 76, 79, 77, 80, 86]\n\n# Patas 03\nxiF = &#091;172., 175, 182, 186, 191, 195, 201, 205, 210, 211, 217]\nfiF = &#091;86., 79, 79, 77, 82, 78, 81, 79, 82, 85, 90]\n\n# Patas 04\nxiG = &#091;113., 118, 122, 127, 132, 136, 140, 144, 149, 152]\nfiG = &#091;88., 90, 88, 86, 85, 83, 87, 84, 86, 85]\n\n# Rabito 01\nxiH = &#091;97., 102, 108, 111, 117, 121]\nfiH = &#091;120., 113, 108, 105, 102, 102]\n\n# cabeza 01\nxiI = &#091;194., 196, 203, 210, 211, 209]\nfiI = &#091;177., 167, 157, 149, 138, 135]\n\n# cabeza 02\nxiJ = &#091;195., 199, 207, 214, 219, 224, 229, 234, 239, 242, 244]\nfiJ = &#091;177., 185, 190, 190, 188, 193, 192, 185, 175, 172, 168]\n\n# cabeza 03\nxiK = &#091;220., 226, 234, 239, 241]\nfiK = &#091;164., 162, 163, 163, 163]\n\n# cabeza 04\nxiL = &#091;203., 211, 214, 219, 223, 224, 225, 230, 236, 241]\nfiL = &#091;115., 119, 125, 124, 127, 137, 146, 149, 154, 162]\n\n# cabeza 05\nxiM = &#091;208., 212, 215, 219, 221, 225, 228]\nfiM = &#091;174., 177, 178, 179, 182, 183, 178]\n\n# cabeza 06\nxiN = &#091;206., 210, 214, 218, 220, 224, 229, 233, 232]\nfiN = &#091;179., 182, 182, 181, 174, 171, 170, 175, 180]<\/code><\/pre>\n\n\n\n<p>1.1 Algoritmo inicial en Python para puntos en la gr\u00e1fica<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code alignwide\"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# taller de Interpolacion\n# gr\u00e1fica de puntos por grupos\nimport numpy as np\n\n# INGRESO\ntitulo = 'tortuga galapagos'\n\n# caparazon superior\nxiA = &#x5B;113., 117, 134, 153, 169, 184, 194, 203]\nfiA = &#x5B;127., 141, 161, 166, 160, 155, 140, 132]\n\n# caparazon inferior 1\nxiB = &#x5B;113., 123, 130, 149, 182, 197, 208, 211]\nfiB = &#x5B;127., 116, 112, 107, 110, 114, 112, 108]\n\n# caparazon inferior 2\nxiC = &#x5B;107., 114, 120, 143, 170, 192, 210]\nfiC = &#x5B;124., 114, 108, 99, 99, 106, 107]\n\n# Patas 01\nxiD = &#x5B;110., 116, 120, 121, 134, 143, 153, 168, 173, 177, 181, 188, 194, 201, 205, 210, 214, 218]\nfiD = &#x5B;92., 86, 89, 86, 87, 95, 91, 93, 85, 85, 83, 86, 88, 86, 91, 87, 92, 92]\n\n# Patas 02\nxiE = &#x5B;109., 115, 117, 120, 125, 130, 134, 138, 142, 145, 150, 152, 154]\nfiE = &#x5B;91., 87, 82, 82, 78, 78, 81, 78, 76, 79, 77, 80, 86]\n\n# Patas 03\nxiF = &#x5B;172., 175, 182, 186, 191, 195, 201, 205, 210, 211, 217]\nfiF = &#x5B;86., 79, 79, 77, 82, 78, 81, 79, 82, 85, 90]\n\n# Patas 04\nxiG = &#x5B;113., 118, 122, 127, 132, 136, 140, 144, 149, 152]\nfiG = &#x5B;88., 90, 88, 86, 85, 83, 87, 84, 86, 85]\n\n# Rabito 01\nxiH = &#x5B;97., 102, 108, 111, 117, 121]\nfiH = &#x5B;120., 113, 108, 105, 102, 102]\n\n# cabeza 01\nxiI = &#x5B;194., 196, 203, 210, 211, 209]\nfiI = &#x5B;177., 167, 157, 149, 138, 135]\n\n# cabeza 02\nxiJ = &#x5B;195., 199, 207, 214, 219, 224, 229, 234, 239, 242, 244]\nfiJ = &#x5B;177., 185, 190, 190, 188, 193, 192, 185, 175, 172, 168]\n\n# cabeza 03\nxiK = &#x5B;220., 226, 234, 239, 241]\nfiK = &#x5B;164., 162, 163, 163, 163]\n\n# cabeza 04\nxiL = &#x5B;203., 211, 214, 219, 223, 224, 225, 230, 236, 241]\nfiL = &#x5B;115., 119, 125, 124, 127, 137, 146, 149, 154, 162]\n\n# cabeza 05\nxiM = &#x5B;208., 212, 215, 219, 221, 225, 228]\nfiM = &#x5B;174., 177, 178, 179, 182, 183, 178]\n\n# cabeza 06\nxiN = &#x5B;206., 210, 214, 218, 220, 224, 229, 233, 232]\nfiN = &#x5B;179., 182, 182, 181, 174, 171, 170, 175, 180]\n\n# todos los grupos\nxi = &#x5B;xiA,xiB,xiC,xiD,xiE,xiF,xiG,xiH,xiI,xiJ,xiK,xiL,xiM]\nfi = &#x5B;fiA,fiB,fiC,fiD,fiE,fiF,fiG,fiH,fiI,fiJ,fiK,fiL,fiM]\netiq = &#x5B;'A','B','C','D','E','F','G','H','I','J','K','L','M']\n\n# PROGRAMA\nn = len(xi)\n# convierte en arreglos cada grupo de datos\nfor j in range(0,n,1):\n    xi&#x5B;j] = np.array(xi&#x5B;j],dtype=float)\n    fi&#x5B;j] = np.array(fi&#x5B;j],dtype=float)\n\n# SALIDA\nprint(titulo)\n\n# GRAFICA ---------------------\nimport matplotlib.pyplot as plt\n\nfor j in range(0,n,1):\n    plt.plot(xi&#x5B;j],fi&#x5B;j],'.', label=etiq&#x5B;j])\n    \n# entorno de gr\u00e1fica\nplt.xlabel('xi')\nplt.ylabel('fi')\nplt.title(titulo)\nplt.legend()\nplt.grid()\nplt.tight_layout()\nplt.show()\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Ejercicio de interpolaci\u00f3n 1.1 Algoritmo inicial en Python para puntos en la gr\u00e1fica<\/p>\n","protected":false},"author":8043,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"wp-custom-template-entrada-mn-unidades","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-3551","post","type-post","status-publish","format-standard","hentry","category-mn-u04"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/3551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/users\/8043"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/comments?post=3551"}],"version-history":[{"count":5,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/3551\/revisions"}],"predecessor-version":[{"id":23313,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/3551\/revisions\/23313"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/media?parent=3551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/categories?post=3551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/tags?post=3551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}