Python - tensorflow.math.digamma() Last Updated : 08 Jun, 2020 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. 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 the input tensor. Allowed dtypes are bfloat16, half, float32, float64.name(optional): It defines the name for the operation. Returns: It returns a tensor of same dtype as x. Example 1: Python3 # importing the library import tensorflow as tf # Initializing the input tensor a = tf.constant([1, 2, 3, 4, 5], dtype = tf.float64) # Printing the input tensor print('Input: ', a) # Calculating digamma res = tf.math.digamma(x = a) # Printing the result print('Result: ', res) Output: Input: tf.Tensor([1. 2. 3. 4. 5.], shape=(5, ), dtype=float64) Result: tf.Tensor([-0.57721566 0.42278434 0.92278434 1.25611767 1.50611767], shape=(5, ), dtype=float64) Example 2: Visualization Python3 # importing the library import tensorflow as tf import matplotlib.pyplot as plt # Initializing the input tensor a = tf.constant([1, 2, 3, 4, 5], dtype = tf.float64) # Calculating digamma res = tf.math.digamma(x = a) # Plotting the graph plt.plot(a, res, color ='green') plt.title('tensorflow.math.digamma') plt.xlabel('Input') plt.ylabel('Result') plt.show() Output: Comment More infoAdvertise with us Next Article Python - tensorflow.math.digamma() 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.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.lgamma() 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 b 1 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