original_docstring: define phase function as sympy object for later evaluation
docstring: define phase function as sympy object for later evaluation
docstring_tokens: define phase function as sympy object for later evaluation
code: def _set_function(self):
          """define phase function as sympy object for later evaluation"""
          theta_0 = sp.Symbol('theta_0')
          theta_ex = sp.Symbol('theta_ex')
          phi_0 = sp.Symbol('phi_0')
          phi_ex = sp.Symbol('phi_ex')
  
          x = self.scat_angle(theta_0, theta_ex, phi_0, phi_ex, a=self.a)
  
          nadir_hemreflect = 4 * ((1. - self.t**2.) *
                                  (1. - self.t * (-self.t + self.a[0]) -
                                   sp.sqrt((1 + self.t**2 -
                                            2 * self.a[0] * self.t) *
                                           (1 + self.t**2))) /
                                  (2. * self.a[0]**2. * self.t**2. *
                                   sp.sqrt(1. + self.t**2. -
                                           2. * self.a[0] * self.t)))
  
          self._func = (1. / nadir_hemreflect) * ((1. - self.t ** 2.) /
                                                  ((sp.pi) *
                                                   (1. + self.t ** 2. -
                                                    2. * self.t * x) ** 1.5))
code_tokens: def _set_function ( self ) : theta_0 = sp . Symbol ( 'theta_0' ) theta_ex = sp . Symbol ( 'theta_ex' ) phi_0 = sp . Symbol ( 'phi_0' ) phi_ex = sp . Symbol ( 'phi_ex' ) x = self . scat_angle ( theta_0 , theta_ex , phi_0 , phi_ex , a = self . a ) nadir_hemreflect = 4 * ( ( 1. - self . t ** 2. ) * ( 1. - self . t * ( - self . t + self . a [ 0 ] ) - sp . sqrt ( ( 1 + self . t ** 2 - 2 * self . a [ 0 ] * self . t ) * ( 1 + self . t ** 2 ) ) ) / ( 2. * self . a [ 0 ] ** 2. * self . t ** 2. * sp . sqrt ( 1. + self . t ** 2. - 2. * self . a [ 0 ] * self . t ) ) ) self . _func = ( 1. / nadir_hemreflect ) * ( ( 1. - self . t ** 2. ) / ( ( sp . pi ) * ( 1. + self . t ** 2. - 2. * self . t * x ) ** 1.5 ) )
short_docstring: define phase function as sympy object for later evaluation
short_docstring_tokens: define phase function as sympy object for later evaluation
comment: """define phase function as sympy object for later evaluation"""