Exemple #1
0
    def get_g_primed(self, x):
        """ Uses precomputed information to compute the derivative of the visibility function. """ 

        return interpolation.splint_deriv(self.x_array, self.g_array, self.g_spline, x)
Exemple #2
0
    def get_tau_double_primed(self, x):
        """ Uses information in the tau primed spline to splint the derivative of this again """

        #Since what we have information about is log(-dtau/dx), we have to return
        # -dtau/dx * d log(-dtau/dx)/dx in order to actually return d2tau/dx2
        return -self.get_tau_primed(x) * interpolation.splint_deriv(self.x_array, np.log(-self.tau_der_array), self.tau_der_spline, x)