Skip to content

Instantly share code, notes, and snippets.

View cad3na's full-sized avatar

Roberto Cadena Vega cad3na

  • México, DF
  • 08:35 (UTC -06:00)
View GitHub Profile
@cad3na
cad3na / custom.css
Last active November 19, 2015 04:40
Custom style for IPython Notebook
<link href='http://fonts.googleapis.com/css?family=EB+Garamond' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato:100,100italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//cdn.jsdelivr.net/font-hack/2.013/css/hack-extended.min.css">
<style>
@font-face{
font-family: "Computer Modern";
src: url('http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunss.otf');}
div.cell{
@cad3na
cad3na / install.sh
Last active August 29, 2015 14:04
archivo de instalacion
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap staticfloat/julia
brew tap homebrew/versions
brew install caskroom/cask/brew-cask
brew tap caskroom/fonts
brew install gcc
brew install hr
@cad3na
cad3na / Cinematica Directa.ipynb
Created December 4, 2013 05:27
Cinematica Directa
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cad3na
cad3na / sistema-masa-resorte.py
Created October 3, 2013 05:02
Grafica respuesta a impulso
y,t = impulse(G,w)
plot(t,y)
y,t = impulse(EU,w)
plot(t,y)
xlim([0,10]);
@cad3na
cad3na / sistema-masa-resorte.py
Created October 3, 2013 04:55
Parametros normales del sistema
G = tf([9.81],[1.0, 1500.0/1200.0, 15000.0/1200.0])
EU = tf([1,0],[1,0])
@cad3na
cad3na / sistema-masa-resorte.py
Created October 3, 2013 04:37
Parametros sobreamortiguados del sistema
G = tf([9.81],[1.0, 1500.0/1200.0, 10000.0/1200.0])
EU = tf([1,0],[1,0])
@cad3na
cad3na / sistema-masa-resorte.py
Created October 3, 2013 04:26
Parametros subamortiguados del sistema
G = tf([9.81],[1.0, 500.0/1200.0, 15000.0/1200.0])
EU = tf([1,0],[1,0])
@cad3na
cad3na / sistema-masa-resorte-py
Created October 3, 2013 04:16
Grafica respuesta a escalon
y,t = step(G)
plot(t,y)
y,t = step(EU,w)
plot(t,y)
xlim([0,10]);
@cad3na
cad3na / sistema-masa-resorte.py
Created October 3, 2013 04:14
Definición del sistema
G = tf([9.81],[1.0, 1500.0/1200.0, 15000.0/1200.0])
EU = tf([1,0],[1,0])
w = linspace(0,10,1000)
@cad3na
cad3na / sistema-masa-resorte.py
Created October 3, 2013 04:11
Funciones de python-control
from control import tf, step, impulse