View source: R/line_integral.R
| vc_plot_line_integral | R Documentation |
Display stored samples from a line integral
vc_plot_line_integral(result, title = NULL)
result |
Result of vc_line_integral(). |
title |
Optional character title. |
Samples come from quadrature. Adaptive quadrature may omit endpoints, and connecting samples approximates the curve. Equal bounds leave no samples to display. No functions are reevaluated.
Plotly widget. For planar scalar integrals, shows the sampled curve and the signed curtain up to the field height. Other integrals show the sampled path with local integrand values in hover text.
if (requireNamespace("plotly",quietly=TRUE)) {
r <- vc_line_integral(function(p)p[1],function(t)c(t,t^2),
c(-1,1),method="simpson")
vc_plot_line_integral(r)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.