View air-length.py
This file contains 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
import numpy as np | |
from sympy import * | |
from scipy import interpolate | |
import matplotlib.pyplot as plt | |
from matplotlib import rc, rcParams | |
# Plot and save trajectories y(x) for fixed v0, k and varying | |
# angle α. | |
# Last line prints an angle corresponding to the maximum length |
View ftr-a-mu.py
This file contains 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
import numpy as np | |
# Triginometry {{{ | |
def cos(x): return round( np.cos( np.radians(x) ), 10 ) | |
def sin(x): return round( np.sin( np.radians(x) ), 10 ) | |
def tg(x): return round( np.tan( np.radians(x) ), 10 ) | |
def arctg(x): return np.degrees( np.arctan(x) ) | |
def sins(x): return round( np.sin( np.radians(x) )**2, 10 ) | |
def asin(x): return np.degrees( np.arcsin(x) ) | |
#}}} |
View r_t.py
This file contains 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
import numpy as np | |
def cos(x): | |
return round( np.cos( np.radians(x) ), 10 ) | |
def sin(x): | |
return round( np.sin( np.radians(x) ), 10 ) | |
def asin(x): | |
return np.degrees( np.arcsin(x) ) | |
# Plot setup {{{ |
View kepler2alpha-1.py
This file contains 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
import os | |
import numpy as np | |
from matplotlib.patches import Ellipse | |
import matplotlib as mpl | |
from matplotlib import pyplot as plt | |
from matplotlib import rc, rcParams | |
from matplotlib.ticker import AutoMinorLocator, MultipleLocator | |
from matplotlib.patches import Arc | |
# Trigonometry {{{ |
View neglect.py
This file contains 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 python | |
#coding=utf8 | |
import numpy as np | |
from matplotlib import rc, rcParams | |
import matplotlib.pyplot as plt | |
from matplotlib.ticker import AutoMinorLocator, MultipleLocator | |
# Plot Setup {{{ | |
rcParams['font.size'] = 16. |
View find-unused-latex-plots.py
This file contains 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 python | |
#coding=utf8 | |
import re, os | |
path = '/home/slisakov/Dropbox/documents/science/thesis/' | |
plots = '/home/slisakov/Dropbox/documents/science/thesis/plots/' | |
used_plots = [] # present in tex | |
commented_plots = [] # present in tex, commented |
View gridspec.py
This file contains 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 python | |
#coding=utf8 | |
from pylab import * | |
from matplotlib import * | |
gs = gridspec.GridSpec(2, 1) #subplots ratio | |
f, (ax1, ax2) = plt.subplots(2, sharex=True) | |
ax1 = plt.subplot(gs[0, 0]) | |
ax2 = plt.subplot(gs[1, 0]) |
View decay.py
This file contains 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=utf8 | |
import numpy as np | |
from matplotlib import * | |
import matplotlib.pyplot as plt | |
import matplotlib.ticker as ticker | |
from matplotlib.ticker import AutoMinorLocator | |
from math import exp | |
from distinct_colors import get_distinct | |
''' Decay of 56Ni ''' |
View 2-step decay chain Ni→Co→Fe
This file contains 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=utf8 | |
import numpy as np | |
from matplotlib import * | |
import matplotlib.pyplot as plt | |
import matplotlib.ticker as ticker | |
from matplotlib.ticker import AutoMinorLocator | |
from math import exp | |
from distinct_colors import get_distinct | |
''' Decay of 56Ni ''' |
NewerOlder