Advertisement
Guest User

rstudio

a guest
Jun 16th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. plot(0,
  2. xlim = c(0, 10),
  3. ylim = c(0, 1),
  4. type = "n",
  5. ylab = "f(x)",
  6. xlab = "x",
  7. main = "funkcja gestosci"
  8. )
  9.  
  10.  
  11.  
  12. integrate(function(x) dexp(x, 1/2), lower = 0, upper = 1)$value + integrate(function(x) dexp(x, 1/2), lower = 3, upper = 10)$value
  13.  
  14. curve(dexp(x, 1/2), xlim=c(0, 1), add = TRUE, lwd = 2)
  15. curve(dexp(x, 1/2), xlim=c(3, 10), add = TRUE, lwd = 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement