Skip to content

Instantly share code, notes, and snippets.

@davidglezz
Created November 4, 2013 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidglezz/7305378 to your computer and use it in GitHub Desktop.
Save davidglezz/7305378 to your computer and use it in GitHub Desktop.
Visual Studio doesn't have exp2 and log2
double exp2(double n)
{
return pow(2.0, n);
}
double log2(double n)
{
return log(n) / log(2.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment