vc_region: Sample a planar region independently of integration

View source: R/region.R

vc_regionR Documentation

Sample a planar region independently of integration

Description

Sample a planar region independently of integration

Usage

vc_region(lower, upper, interval = NULL, n = 40L, n_u = 20L, partition = NULL)

Arguments

lower, upper

Scalar boundary functions of x, ordered at sampled nodes.

interval

Finite increasing x bounds, or NULL with partition supplied.

n

Positive number of regular x strips, ignored with partition.

n_u

Positive number of subdivisions across each vertical section.

partition

Optional vc_partition result; reconstructed from breaks.

Details

Reuses vc_partition unchanged. Validates sampled ordering without swapping boundaries. Linear interpolation between sampled boundary values is a representation, not proof of topology, ordering between samples or exact curved boundaries. A single interval between two graphs is supported; disconnected vertical cross sections require justified decomposition. Equal boundary heights are allowed as degenerate sections. Every stored coordinate must be finite; fine representable grids are not guaranteed.

Value

Plain list with type region, partition, sections (outer,lower,upper), u blending fractions, grid (x,y matrices with u rows and x columns), strips (the scalar partition cell table) and note. No volume/area computed.

Examples

vc_region(function(x)x^2,sqrt,c(0,1),n=10,n_u=4)

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