def _jacobian_determinant_ok_WM95(self, source_x, source_y):
"""determinants of lens equation Jacobian for verified roots"""
roots_ok_bar = np.conjugate(self._polynomial_roots_ok_WM95(
source_x=source_x, source_y=source_y))
# Variable X_bar is conjugate of variable X.
denominator_1 = self._position_z1_WM95 - roots_ok_bar
add_1 = self.mass_1 / denominator_1**2
denominator_2 = self._position_z2_WM95 - roots_ok_bar
add_2 = self.mass_2 / denominator_2**2
derivative = add_1 + add_2
# Can we use Utils.complex_fsum()-like function here?
return 1.-derivative*np.conjugate(derivative)
# Can we use Utils.complex_fsum()-like function here?
评论列表
文章目录