approxPot1D: Approximate potential in one dimension

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/approxPot.R

Description

Approximate potential in one dimension

Usage

1
approxPot1D(f, xs, V0 = "auto")

Arguments

f

One-dimensional representing the flow (right hand side of differential equation)

xs

Vector of positions to evaluate

V0

(Optional) Value of V at first element of xs. When default, the global minimum is assigned 0

Value

The potential estimated at each point in xs

Author(s)

Pablo Rodríguez-Sánchez (https://pabrod.github.io)

References

https://arxiv.org/abs/1903.05615

See Also

approxPot2D, deltaV

Examples

1
2
3
4
5
6
7
8
# Flow
f = function(x) { sin(x) }

# Sampling points
xs <- seq(0, 2*pi, length.out = 1e3)

# Approximated potential
Vs <- approxPot1D(f, xs)

PabRod/rolldown documentation built on Dec. 22, 2020, 6:52 a.m.