plot.stepsize | R Documentation |
Plots the estimated truncation error and total errors, highlighting various ranges obtained during step-size selection for numerical differentiation. Works for all implemented methods.
## S3 method for class 'stepsize'
plot(x, ...)
## S3 method for class 'gradstep'
plot(x, index, ...)
x |
List returned by |
... |
Additional graphical parameters passed to |
index |
Integer index of character name of the coordinate of |
Nothing (invisible null).
sCR <- step.CR(sin, 1)
sK <- step.K(sin, 1)
plot(sCR)
plot(sK)
f <- function(x) prod(sin(x))
s <- gradstep(f, 1:4, method = "CR")
plot(s, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.