Python - cmath.e Constant Last Updated : 28 May, 2020 Comments Improve Suggest changes Like Article Like Report cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.e Constant is used to get the eular's number. Syntax: cmath.e Returns: Return the e value. Below examples illustrate the use of above function: Example #1 : Python3 # Python code to implement # the cmath.e constant # importing "cmath" # for mathematical operations import cmath # Print the value of Euler e val = cmath.e print(val) Output: 2.718281828459045 Example 2: Python3 # Python code to implement # the cmath.e constant # importing "cmath" # for mathematical operations import cmath # Print the value of e ^ 2 val = cmath.e ** 2 print(val) Output: 7.3890560989306495 Comment More infoAdvertise with us Next Article Python - cmath.e Constant S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python math-library-functions Python Cmath-library Practice Tags : python Similar Reads Python - cmath.inf Constant cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.inf Constant is used to get the floating-point positive infinity. Syntax: cmath.inf Returns: Return the value of positive infinity Below examples illustrate the use of above function: 1 min read Python | cmath.nan Constant cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.nan Constant is used to get the floating-point nan (Not a Number). Syntax: cmath.nan Returns: Return the floating-point nan value. Below examples illustrate the use of above function: 1 min read Python - cmath.infj Constant cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.infj Constant is used to get the complex positive infinity. Syntax: cmath.infj Returns: Return the complex positive infinity. Below examples illustrate the use of above function: Exam 1 min read Python - cmath.nanj Constant cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.nanj Constant is used to get the complex nan (Not a Number). Syntax: cmath.nanj Returns: Return the complex nan value. Below examples illustrate the use of above function: Example #1 1 min read Python Constant In Python, constants are variables whose values are intended to remain unchanged throughout a program. They are typically defined using uppercase letters to signify their fixed nature, often with words separated by underscores (e.g., MAX_LIMIT). Let's understand with the help of example:Python # Mat 2 min read Like