Learn R Programming

waydown (version 1.1.0)

approxPot1D: Approximate potential in one dimension

Description

Approximate potential in one dimension

Usage

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

References

https://arxiv.org/abs/1903.05615

See Also

approxPot2D, deltaV

Examples

Run this code
# NOT RUN {
# Flow
f = function(x) { sin(x) }

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

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

Run the code above in your browser using DataLab