blob: 05dd50001d91e587cdc5c0e12cf436c105f89145 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|