ndispers/media/crystals/_KDP.py
def n_expr(self, pol):
        """"
        Sympy expression, 
        dispersion formula of a general ray with an angle theta to optic axis. If theta = 0, this expression reduces to 'no_expre'.

        n(theta) = n_e / sqrt( sin(theta)**2 + (n_e/n_o)**2 * cos(theta)**2 )
        """
        if pol == 'o':
            return self.n_o_expr()
        elif pol == 'e':
            return self.n_e_expr() / sympy.sqrt( sympy.sin(theta)**2 + (self.n_e_expr()/self.n_o_expr())**2 * sympy.cos(theta)**2 )
        else:
            raise ValueError("pol = '%s' must be 'o' or 'e'" % pol)

        Sympy expression, 
        dispersion formula of a general ray with an angle theta to optic axis. If theta = 0, this expression reduces to 'no_expre'.

        n(theta) = n_e / sqrt( sin(theta)**2 + (n_e/n_o)**2 * cos(theta)**2 )
        
Sympy expression,
dispersion formula of a general ray with an angle theta to optic axis. If theta = 0, this expression reduces to 'no_expre'.


Sympy expression dispersion formula of a general ray with an angle theta to optic axis . If theta = 0 this expression reduces to ' no_expre ' .
def n_expr(self, pol):
        if pol == 'o':
            return self.n_o_expr()
        elif pol == 'e':
            return self.n_e_expr() / sympy.sqrt( sympy.sin(theta)**2 + (self.n_e_expr()/self.n_o_expr())**2 * sympy.cos(theta)**2 )
        else:
            raise ValueError("pol = '%s' must be 'o' or 'e'" % pol)
def n_expr ( self , pol ) : if pol == 'o' : return self . n_o_expr ( ) elif pol == 'e' : return self . n_e_expr ( ) / sympy . sqrt ( sympy . sin ( theta ) ** 2 + ( self . n_e_expr ( ) / self . n_o_expr ( ) ) ** 2 * sympy . cos ( theta ) ** 2 ) else : raise ValueError ( "pol = '%s' must be 'o' or 'e'" % pol )
Sympy expression,
dispersion formula of a general ray with an angle theta to optic axis.
Sympy expression dispersion formula of a general ray with an angle theta to optic axis .
""""
        Sympy expression, 
        dispersion formula of a general ray with an angle theta to optic axis. If theta = 0, this expression reduces to 'no_expre'.

        n(theta) = n_e / sqrt( sin(theta)**2 + (n_e/n_o)**2 * cos(theta)**2 )
        """
self
pol