vc_plot_line_integral: Display stored samples from a line integral

View source: R/line_integral.R

vc_plot_line_integralR Documentation

Display stored samples from a line integral

Description

Display stored samples from a line integral

Usage

vc_plot_line_integral(result, title = NULL)

Arguments

result

Result of vc_line_integral().

title

Optional character title.

Details

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.

Value

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.

Examples

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)
}

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.