Skip to content

Instantly share code, notes, and snippets.

@Rudxain
Created March 25, 2024 21:35
Show Gist options
  • Save Rudxain/b1caa1de799c5d49f3528da08f16e60b to your computer and use it in GitHub Desktop.
Save Rudxain/b1caa1de799c5d49f3528da08f16e60b to your computer and use it in GitHub Desktop.
arbitrary way to compute an "average"
def fn(x, n):
return (x/n + x*n) / 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment