S
Steven T. Hatton
I can get the accurate value of Pi to an arbitrary precision, but it would
be nice to have it directly and readily available as a standard feature of
the language. Have I overlooked something, or is it not there?
ISO/IEC14882:2003(E) offers me this:
template<class T> complex<T> log(const complex<T>& x);
"4 Notes: the branch cuts are along the negative real axis.
5 Returns: the complex natural (base e) logarithm of x, in the range of a
strip mathematically unbounded along the real axis and in the interval [-i
times pi, i times pi ] along the imaginary axis. When x is a negative real
number, imag(log(x)) is pi."
3.1415926535897932384626433832795028841971693993751058209749445923078164062862\
089986280348253421170679821480865132823066470938446095505822317253594081284811\
174502841027019385211055596446229489549303819644288109756659334461284756482337\
8678316527120190914564856692346034861045432664821339360726024914127
be nice to have it directly and readily available as a standard feature of
the language. Have I overlooked something, or is it not there?
ISO/IEC14882:2003(E) offers me this:
template<class T> complex<T> log(const complex<T>& x);
"4 Notes: the branch cuts are along the negative real axis.
5 Returns: the complex natural (base e) logarithm of x, in the range of a
strip mathematically unbounded along the real axis and in the interval [-i
times pi, i times pi ] along the imaginary axis. When x is a negative real
number, imag(log(x)) is pi."
3.1415926535897932384626433832795028841971693993751058209749445923078164062862\
089986280348253421170679821480865132823066470938446095505822317253594081284811\
174502841027019385211055596446229489549303819644288109756659334461284756482337\
8678316527120190914564856692346034861045432664821339360726024914127