Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tap1012
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
tap1012
Commits
dd690293
Commit
dd690293
authored
Mar 23, 2019
by
Carlos David García Hernández
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tarea 5 Reloaded
parent
d886a2d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
33 deletions
+14
-33
05-NumPy&Pandas.ipynb
05-NumPy&Pandas.ipynb
+14
-33
No files found.
05-NumPy&Pandas.ipynb
View file @
dd690293
...
...
@@ -950,7 +950,7 @@
},
{
"cell_type": "code",
"execution_count":
3
,
"execution_count":
2
,
"metadata": {},
"outputs": [
{
...
...
@@ -959,7 +959,7 @@
"'b=mat2\\nprint(b)\\nzip_b = zip(*b)\\nfor col_b in zip_b:\\n print(col_b)\\n'"
]
},
"execution_count":
3
,
"execution_count":
2
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -1018,8 +1018,8 @@
" cols_B = len(m2[0])\n",
"\n",
" if cols_A != fila_B:\n",
" print (\"Imposible resolver, la dimensionalidad de las matrices no cuadra.\")\n",
"
return
\n",
"
print (\"Imposible resolver, la dimensionalidad de las matrices no cuadra.\")\n",
"
return (0)
\n",
"\n",
" C = [[0 for fila in range(cols_B)] for col in range(fila_A)]\n",
" print (C)\n",
...
...
@@ -1055,7 +1055,7 @@
},
{
"cell_type": "code",
"execution_count":
5
,
"execution_count":
3
,
"metadata": {},
"outputs": [
{
...
...
@@ -1084,7 +1084,7 @@
},
{
"cell_type": "code",
"execution_count":
6
,
"execution_count":
5
,
"metadata": {},
"outputs": [
{
...
...
@@ -1096,13 +1096,13 @@
"Ingrese las columnas de la matriz: \n",
"2\n",
"Ingresa el valor del elemento0,0: \n",
"
2
\n",
"
10
\n",
"Ingresa el valor del elemento0,1: \n",
"2\n",
"2
0
\n",
"Ingresa el valor del elemento1,0: \n",
"
2
\n",
"
30
\n",
"Ingresa el valor del elemento1,1: \n",
"
2
\n"
"
40
\n"
]
}
],
...
...
@@ -1155,7 +1155,7 @@
},
{
"cell_type": "code",
"execution_count":
7
,
"execution_count":
6
,
"metadata": {},
"outputs": [
{
...
...
@@ -1168,10 +1168,10 @@
{
"data": {
"text/plain": [
"[[
6, 6], [14, 14
]]"
"[[
70, 100], [150, 220
]]"
]
},
"execution_count":
7
,
"execution_count":
6
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -1304,7 +1304,7 @@
" filas(): Un escalar\n",
" columnas(): Un escalar\n",
" determinante(): Un escalar\n",
" gauss()\n",
" gauss()
: Regresa la matriz inversa o pseudo inversa, según el caso, por método de Gauss
\n",
" \n",
" '''\n",
" def __init__ (self,matriz):\n",
...
...
@@ -1452,25 +1452,6 @@
" return(\"Soy la matriz:\\n\"+ str(self.matriz))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"''' \n",
" else:\n",
" #original=self.matriz\n",
" #x=mmult1(original.T,self.matriz)\n",
" #x=Matriz(x)\n",
" #print(x)\n",
" #print(self.matriz)\n",
" #inve=x.gauss\n",
" #print(inve)\n",
" #mmult1(inve,original.T)\n",
" pass'''"
]
},
{
"cell_type": "code",
"execution_count": 1545,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment