Add tan(), tanh(), log10() to std::complex
Keep the haiku/ version of the headers in sync with buildtools (see btrev43041) I'm curious: why do we have a copy of these headers in haiku/ tree ?
This commit is contained in:
parent
39f5f3042c
commit
7ee53ed3bd
@ -387,6 +387,22 @@ template <class _FLT> complex<_FLT>
|
||||
template <class _FLT> complex<_FLT>
|
||||
sqrt (const complex<_FLT>&) __attribute__ ((const));
|
||||
|
||||
template <class _FLT> inline complex<_FLT>
|
||||
tan (const complex<_FLT>& x)
|
||||
{
|
||||
return sin (x) / cos (x);
|
||||
}
|
||||
template <class _FLT> inline complex<_FLT>
|
||||
tanh (const complex<_FLT>& x)
|
||||
{
|
||||
return sinh (x) / cosh (x);
|
||||
}
|
||||
template <class _FLT> inline complex<_FLT>
|
||||
log10 (const complex<_FLT>& x)
|
||||
{
|
||||
return log (x) / log (10.0);
|
||||
}
|
||||
|
||||
template <class _FLT> istream& operator >> (istream&, complex<_FLT>&);
|
||||
template <class _FLT> ostream& operator << (ostream&, const complex<_FLT>&);
|
||||
} // extern "C++"
|
||||
|
Loading…
x
Reference in New Issue
Block a user