Python - tensorflow.math.lgamma() Last Updated : 03 Apr, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks. lgamma() is used to Compute element wise log of absolute value of Gamma(x). Syntax: tensorflow.math.lgamma( x, name) Parameters: x: It is a tensor. Allowed dtypes are bfloat16, half, float32, float64.name(optional): It defines the name of the operation Returns: It returns a tensor of dtype as x. Example 1: Python3 # importing the library import tensorflow as tf # Initializing the input tensor a = tf.constant([7, 8, 13, 11], dtype = tf.float64) # Printing the input tensor print('a: ', a) # Calculating the result res = tf.math.lgamma(a) # Printing the result print('Result: ', res) Output: a: tf.Tensor([ 7. 8. 13. 11.], shape=(4, ), dtype=float64) Result: tf.Tensor([ 6.57925121 8.52516136 19.9872145 15.10441257], shape=(4, ), dtype=float64) Example 2: Python3 # Importing the library import tensorflow as tf # Initializing the input tensor a = tf.constant([2, 8, 14, 5], dtype = tf.float32) # Printing the input tensor print('a: ', a) # Calculating the result res = tf.math.lgamma(a) # Printing the result print('Result: ', res) Output: a: tf.Tensor([ 2. 8. 14. 5.], shape=(4, ), dtype=float32) Result: tf.Tensor([ 0. 8.525162 22.552166 3.1780539], shape=(4, ), dtype=float32) Comment More infoAdvertise with us Next Article Python - tensorflow.math.lgamma() A aman neekhara Follow Improve Article Tags : Machine Learning AI-ML-DS With Python Practice Tags : Machine Learning Similar Reads Python - tensorflow.math.igamma() TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning  neural networks. igamma() is used to Compute the lower regularized incomplete Gamma function P(a, x). P(a, x) is defined as: where gamma(a, x) is the lower incomplete Gamma function and 2 min read Python - tensorflow.math.digamma() TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning  neural networks. digamma() is used to compute element wise derivative of Lgamma  i.e. log of absolute value of Gamma(x). Syntax: tensorflow.math.digamma(  x, name) Parameters: x: It's 1 min read Python - tensorflow.math.igammac() TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning  neural networks. igammac() is used to Compute the upper regularized incomplete Gamma function Q(a, x). Q(a, x) is defined as: where gamma(a, x) is the lower incomplete Gamma function an 2 min read Python - tensorflow.math.imag() TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning  neural networks. imag() is used to find the imaginary part of a tensor. Syntax: tensorflow.math.imag( input, name) Parameters: input: It is a tensor. Allowed dtypes are float, double, c 1 min read Python - tensorflow.math.atan() TensorFlow is open-source python library designed by Google to develop Machine Learning models and deep learning  neural networks. atan() is used to find element wise atan of x. Syntax: tf.math.atan(x, name) Parameters: x: It's the input tensor. Allowed dtype for this tensor are bfloat16, half, flo 1 min read Like