Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. f <- function(x, y) { (x^2+y-11)^2 + (x+y^2-7)^2 }
  2.  
  3. x <- seq(-6, 6, length = 100)
  4. y <- x
  5.  
  6. z <- outer(x, y, f)
  7.  
  8. library(plotly)
  9. plot_ly(x = x, y = y, z = ~z) %>% add_surface()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement