approxPot2D {waydown} | R Documentation |
Approximate potential in two dimensions
Description
Approximate potential in two dimensions
Usage
approxPot2D(f, xs, ys, V0 = "auto", mode = "mixed")
Arguments
f |
Two-dimensional representing the flow (right hand side of differential equation) |
xs |
Vector xs positions to evaluate |
ys |
Vector of ys positions to evaluate |
V0 |
(Optional) Value of V at first element of (xs,ys). When default, the global minimum is assigned 0 |
mode |
(Optional) Integration mode. Options are horizontal (default), vertical and mixed |
Value
The potential estimated at each point (xs, ys)
Author(s)
Pablo RodrÃguez-Sánchez (https://pabrod.github.io)
References
https://arxiv.org/abs/1903.05615
See Also
Examples
# Flow
f = function(x) {c(-x[1]*(x[1]^2 - 1.1), -x[2]*(x[2]^2 - 1))}
# Sampling points
xs <- seq(-1.5, 1.5, length.out = 10)
ys <- seq(-1.5, 1.5, length.out = 15)
# Approximated potential
Vs <- approxPot2D(f, xs, ys, mode = 'horizontal')
[Package waydown version 1.1.0 Index]