| 
| template<typename genType >  | 
| genType  | exp (genType const &x) | 
|   | 
| template<typename genType >  | 
| genType  | exp2 (genType const &x) | 
|   | 
| template<typename genType >  | 
| genType  | inversesqrt (genType const &x) | 
|   | 
| template<typename genType >  | 
| genType  | log (genType const &x) | 
|   | 
| template<typename genType >  | 
| genType  | log2 (genType const &x) | 
|   | 
| template<typename genType >  | 
| genType  | pow (genType const &x, genType const &y) | 
|   | 
| template<typename genType >  | 
| genType  | sqrt (genType const &x) | 
|   | 
These all operate component-wise. 
The description is per component. 
      
        
          | genType glm::exp  | 
          ( | 
          genType const &  | 
          x | ) | 
           | 
        
      
 
 
      
        
          | genType glm::exp2  | 
          ( | 
          genType const &  | 
          x | ) | 
           | 
        
      
 
 
      
        
          | genType glm::inversesqrt  | 
          ( | 
          genType const &  | 
          x | ) | 
           | 
        
      
 
 
      
        
          | genType glm::log  | 
          ( | 
          genType const &  | 
          x | ) | 
           | 
        
      
 
Returns the natural logarithm of x, i.e., returns the value y which satisfies the equation x = e^y. 
Results are undefined if x <= 0.
- Parameters
 - 
  
    | x | log function is defined for input values of x defined in the range (0, inf+) in the limit of the type precision.  | 
  
   
- Template Parameters
 - 
  
    | genType | Floating-point scalar or vector types. | 
  
   
- See Also
 - GLSL log man page 
 
- 
GLSL 4.20.8 specification, section 8.2 Exponential Functions 
 
 
 
      
        
          | genType glm::log2  | 
          ( | 
          genType const &  | 
          x | ) | 
           | 
        
      
 
 
      
        
          | genType glm::pow  | 
          ( | 
          genType const &  | 
          x,  | 
        
        
           | 
           | 
          genType const &  | 
          y  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | genType glm::sqrt  | 
          ( | 
          genType const &  | 
          x | ) | 
           |