Advertisement
Guest User

Untitled

a guest
May 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. f <- function(x,y)
  2. (27*y^2-26*x*y-46*y+19*x^2-9*x-34)/(16*y^2-48*x*y+16*y+36*x^2-24*x+6)
  3. x0 <- 8
  4. y0 <- -2
  5.  
  6. v <- function(x)
  7. y0+v2/v1*(x-x0)
  8.  
  9. x <- seq(x0-r,x0+r,r/100)
  10. y <- seq(y0-r,y0+r,r/100)
  11. z <- outer(x,y,f)
  12.  
  13. contour(x,y,z,asp=1,nlevels=50)
  14. points(x0,y0,pch=16,col="red")
  15.  
  16. h <- 10^(-6)
  17. fx <- (f(x0+h,y0)-f(x0,y0))/h
  18. fy <- (f(x0,y0+h)-f(x0,y0))/h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement