This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| # S铆mbolo de Levi-Civita en Python utilizando listas por comprensi贸n | |
| # F贸rmula extra铆da de http://en.wikipedia.org/wiki/Levi-Civita_symbol#Three_dimensions | |
| # V谩lido para Python 2 y 3 | |
| # | |
| # Juan Luis Cano Rodr铆guez <[email protected]> | |
| from __future__ import print_function | |
| import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # Crea un v铆deo de una serie de im谩genes .png | |
| # Juan Luis Cano Rodr铆guez <[email protected]> | |
| ffmpeg -i fig%03d.png -b:v 512k animation.ogv |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| """Juego de la vida de Conway. | |
| Autor: Juan Luis Cano <[email protected]> | |
| El tablero es un array de NumPy, donde 0 significa c茅lula muerta y 1 c茅lula | |
| viva. Se muestra una animaci贸n con matplotlib. | |
| """ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module vectores | |
| implicit none | |
| contains | |
| ! Producto escalar entre dos vectores u, v de longitud n | |
| function producto_escalar(n, u, v) result(p) | |
| integer, intent(in) :: n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| from io import StringIO | |
| import telnetlib | |
| import socket | |
| import numpy as np | |
| from numpy import radians | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Polar data for a certain airplane | |
| # 1st line: C_L | |
| # 2rd line: C_D | |
| -0.9100 -0.7200 -0.4800 -0.2700 -0.0600 0.1600 0.3100 0.4700 0.6000 0.8200 1.0200 1.2000 1.2400 1.1500 1.0000 0.8000 | |
| 0.0538 0.0438 0.0316 0.0245 0.0228 0.0232 0.0262 0.0301 0.0348 0.0461 0.0608 0.0771 0.0814 0.0900 0.0950 0.1000 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer