powered by
Approximate potential in one dimension
approxPot1D(f, xs, V0 = "auto")
One-dimensional representing the flow (right hand side of differential equation)
Vector of positions to evaluate
(Optional) Value of V at first element of xs. When default, the global minimum is assigned 0
The potential estimated at each point in xs
https://arxiv.org/abs/1903.05615
approxPot2D, deltaV
# 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