1. gamma() :- This function is used to return the gamma function of the argument.
python - Sample - python code :
python tutorial - Output :
The gamma() of 4 is : 6.0
2. pi :- This is an inbuilt constant that outputs the value of pi(3.141592).
3. e :- This is an inbuilt constant that outputs the value of e(2.718281).
python - Sample - python code :
python tutorial - Output :
The value of const. pi is : 3.141592653589793 The value of const. e is : 2.718281828459045
4. inf :- This is a positive floating point infinity constant. -inf is used to denote the negative floating point infinity. This constant is defined in python 3.5 and above.
5. isinf() :- This function is used to check whether the value is an infinity or not.
6. nan :- This constant denotes “Not a number” in python. This constant is defined in python 3.5 and above.
7. isnan() :- This function returns true if the number is “nan” else returns false.
python - Sample - python code :
python tutorial - Output :
The number is nan The number is positive infinity