Skip to content

Instantly share code, notes, and snippets.

@hecomi
Last active December 18, 2015 18:18
Show Gist options
  • Save hecomi/5824358 to your computer and use it in GitHub Desktop.
Save hecomi/5824358 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <sprout/math.hpp>
#include <cmath>
int main(int argc, char* argv[])
{
// auto sin45 = std::sin();
// std::cout << sin45_2 << std::endl;
constexpr auto sin45 = sprout::sin(sprout::math::pi<double>()/4);
std::cout << sin45 << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment