Constants
=========

>>> import gmpy2

>>> gmpy2.const_pi()
mpfr('3.1415926535897931')
>>> gmpy2.const_pi(100)
mpfr('3.1415926535897932384626433832793',100)
>>> gmpy2.const_pi(100,200)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: function takes at most 1 argument (2 given)
>>> gmpy2.const_pi(prec=100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'prec' is an invalid keyword argument for this function
>>> gmpy2.const_pi(precision=100)
mpfr('3.1415926535897932384626433832793',100)
>>> gmpy2.ieee(32).const_pi()
mpfr('3.14159274',24)
>>> gmpy2.ieee(32).const_pi(100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: const_pi() takes no arguments (1 given)
>>> gmpy2.ieee(128).const_pi()
mpfr('3.1415926535897932384626433832795028',113)

>>> gmpy2.const_log2()
mpfr('0.69314718055994529')
>>> gmpy2.const_log2(100)
mpfr('0.69314718055994530941723212145798',100)
>>> gmpy2.const_log2(100,200)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: function takes at most 1 argument (2 given)
>>> gmpy2.const_log2(prec=100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'prec' is an invalid keyword argument for this function
>>> gmpy2.const_log2(precision=100)
mpfr('0.69314718055994530941723212145798',100)
>>> gmpy2.ieee(32).const_log2()
mpfr('0.693147182',24)
>>> gmpy2.ieee(32).const_log2(100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: const_log2() takes no arguments (1 given)
>>> gmpy2.ieee(128).const_log2()
mpfr('0.693147180559945309417232121458176575',113)

>>> gmpy2.const_catalan()
mpfr('0.91596559417721901')
>>> gmpy2.const_catalan(100)
mpfr('0.91596559417721901505460351493252',100)
>>> gmpy2.const_catalan(100,200)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: function takes at most 1 argument (2 given)
>>> gmpy2.const_catalan(prec=100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'prec' is an invalid keyword argument for this function
>>> gmpy2.const_catalan(precision=100)
mpfr('0.91596559417721901505460351493252',100)
>>> gmpy2.ieee(32).const_catalan()
mpfr('0.915965617',24)
>>> gmpy2.ieee(32).const_catalan(100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: const_catalan() takes no arguments (1 given)
>>> gmpy2.ieee(128).const_catalan()
mpfr('0.915965594177219015054603514932384146',113)

>>> gmpy2.const_euler()
mpfr('0.57721566490153287')
>>> gmpy2.const_euler(100)
mpfr('0.57721566490153286060651209008234',100)
>>> gmpy2.const_euler(100,200)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: function takes at most 1 argument (2 given)
>>> gmpy2.const_euler(prec=100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'prec' is an invalid keyword argument for this function
>>> gmpy2.const_euler(precision=100)
mpfr('0.57721566490153286060651209008234',100)
>>> gmpy2.ieee(32).const_euler()
mpfr('0.577215672',24)
>>> gmpy2.ieee(32).const_euler(100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: const_euler() takes no arguments (1 given)
>>> gmpy2.ieee(128).const_euler()
mpfr('0.577215664901532860606512090082402471',113)

