C++

C++11/14 for scientific computing III

Mathematical functions C++11/14 introduces several new mathematical functions, which are all overloaded for the types float, double and long double and that are defined in the header file cmath. The following table summerizes the new functions. Basic operations remainder signed remainder of the division operation remquo signed remainder as well as the three last bits… Continue reading C++11/14 for scientific computing III

C++

C++11/14 for scientific computing II

Complex numbers The template class std::complex and functions for complex numbers (defined in the header file complex) have been extended in C++11/14. The new function std::proj returns the projection of the complex number $z$ onto the Riemann sphere. The functions std::asin, std::acos and std::atan calculate the inverse of the sine, cosine and tangent for complex… Continue reading C++11/14 for scientific computing II