Skip to content

Instantly share code, notes, and snippets.

@juliuskittler
Created September 22, 2019 06:41
Show Gist options
  • Select an option

  • Save juliuskittler/fd407fccce83b9bc440ead4d5dc5bdbb to your computer and use it in GitHub Desktop.

Select an option

Save juliuskittler/fd407fccce83b9bc440ead4d5dc5bdbb to your computer and use it in GitHub Desktop.
par(mfrow=c(5,2), mar=c(2,2,2,2))
curve(factorial(x), from = -10, to = 10, main = "x!")
curve(2^x, from = -10, to = 10, main = "2^x")
curve(1/sqrt(x), from = -10, to = 10, main = "1/x^(1/2)")
curve(exp(-x), from = -10, to = 10, main = "e^(-x)")
curve(log(x), from = -10, to = 10, main = "ln(x)")
curve(exp(x), from = -10, to = 10, main = "e^x")
curve(log2(x), from = -10, to = 10, main = "log2(x)")
curve(log10(x), from = -10, to = 10, main = "log10(x)")
curve(x*log(x), from = -10, to = 10, main = "x*ln(x)")
curve(log(x)^2, from = -10, to = 10, main = "ln(x)^2")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment