f<-function(x){(x^3-2*x^2-8*x+16)}x<-seq(3,100,0.001)i <- which.min(f(x))plot(x,f(x), type = 'l', lwd=2, col = 'blue')x[i]f(x[i])
Standard input is empty
[1] 3 [1] 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!