Skip to content

Instantly share code, notes, and snippets.

@BroVic
Created February 6, 2023 20:13
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 BroVic/c6277d384c83044f27bc36e8c560898c to your computer and use it in GitHub Desktop.
Save BroVic/c6277d384c83044f27bc36e8c560898c to your computer and use it in GitHub Desktop.
Realization of Euler's number
euler <- function(x) (1 + 1/x)^x
n <- c(1:10, 100, 1e3, 1e6, 1e9)
euler(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment