fork download
  1. f<-function(x){(x^3-2*x^2-8*x+16)}
  2. x<-seq(3,100,0.001)
  3. i <- which.min(f(x))
  4. plot(x,f(x), type = 'l', lwd=2, col = 'blue')
  5. x[i]
  6. f(x[i])
Success #stdin #stdout 0.55s 47888KB
stdin
Standard input is empty
stdout
[1] 3
[1] 1