Skip to content

Instantly share code, notes, and snippets.

@yvbbrjdr
Last active February 14, 2020 17:22
Show Gist options
  • Save yvbbrjdr/09d664440069e972012efb96d835aeeb to your computer and use it in GitHub Desktop.
Save yvbbrjdr/09d664440069e972012efb96d835aeeb to your computer and use it in GitHub Desktop.

yv's Formula

f_p(x) = 27.5 * 2 ^ (x / 12)
  • Python
    f_p = lambda x: 27.5 * 2 ** (x / 12)
  • C
    #include <math.h>
    
    double f_p(unsigned char x)
    {
        return 27.5 * pow(2, x / 12.0);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment