Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::cos

 

std::cos is a mathematical function to calculate the cosine.

 

#include <cassert>
#include <cmath>

int main()
{
  assert(std::cos(0.0) == 1.0);
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict