def get_dXdr(self,X):
"Derivative of compactified coordinate with respect to radial"
L = self.L
r_h = self.r_h
num = ((X-1)**2)*np.sqrt((r_h*(X-1))**2 + (L*(X+1))**2)
denom = 2*L*L*(1+X)
dXdr = num/denom
return dXdr
文章目录