From 216207aa5a1b3ca4cddfcb0f4e9c111b0bfac9a2 Mon Sep 17 00:00:00 2001 From: hanemile Date: Tue, 12 Dec 2017 20:30:32 +0100 Subject: update pretty much everything --- langfassung/master.pyg | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 langfassung/master.pyg (limited to 'langfassung/master.pyg') diff --git a/langfassung/master.pyg b/langfassung/master.pyg new file mode 100644 index 0000000..05dd500 --- /dev/null +++ b/langfassung/master.pyg @@ -0,0 +1,13 @@ +def rho_new(x, y, z): + a = (1 - ((1) / (2 * (sigma ** 2))) * ( Mxx * x**2 + 2 * Mxy * x * y + Myy * y**2 ) ) + return rho(x, y, z) * a + +# phi function +def phi(x): + if x == 0: + return -4 * pi * f_0 * G * R_s**2 + + a = - ( 4 * pi * G * f_0 * R_s ** 3 ) / x + b = np.log(1. + (x / R_s) ) + c = a * b + return c -- cgit 1.4.1