Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. x0 <- 0
  2. y0 <- 0
  3. r <- 5
  4.  
  5. f <- function(x,y)
  6. x^3+2*y^3-5*x*y+3*x^2+7*y
  7.  
  8. x <- seq(x0-r,x0+r,r/100)
  9. y <-seq(y0-r,y0+r,r/100)
  10. z <- outer(x,y,f)
  11. t <- seq(0,2*pi,0.01)
  12.  
  13. contour(x,y,z,asp=1,nlevels=50)
  14. lines(2*cos(t),3*sin(t),col="red")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement