Quantcast
Viewing all articles
Browse latest Browse all 14040

Extract the value of mpmath.gamma in python

I use the mpmath.gamma in python function and it print the values in this way like:

import randomimport numpy as npimport mpmathy=mpmath.gamma(12.5)

The output is in this form:

print(y)mpf('136843365.46556586')

How to extract the value or just printing the value like this:

y=136843365.46556586

Viewing all articles
Browse latest Browse all 14040

Trending Articles