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 numpy import pi, exp | |
from scipy.special import gamma, gammaincinv, gammainc | |
# Normalisation constant | |
def b(n): | |
return gammaincinv(2*n, 0.5) | |
# Total luminosity of a 2D Sérsic profile | |
def sersic_total_lum(Ie, re, n): | |
bn = b(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
%%This is often best used in a latex file in two-column mode. To do that, do: | |
%% | |
%%\usepackage{multicol} % before \begin{document} | |
%% ... document ... | |
%%\begin{multicols}{2} | |
%%\bibliography{filename}{} | |
%%\bibliographystyle{apj_short_prop} | |
%%\end{multicols} | |
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
%pylab inline | |
import numpy as np | |
import pylab as plt | |
import GPy | |
import re | |
def get_equation(kern): | |
match = re.search(r'(math::)(\r\n|\r|\n)*(?P<equation>.*)(\r\n|\r|\n)*', kern.__doc__) | |
return '' if match is None else match.group('equation').strip() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.