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