Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::cos is a mathematical function to calculate the cosine.
#include <cassert> #include <cmath> int main() { assert(std::cos(0.0) == 1.0); }