inst/doc/examples/Troesch.R

## =============================================================================
## Troesch's equation
## =============================================================================
require(bvpSolve)

Troesch <- function (t, y, pars) {
  list( c(y[2],  mu*sinh(mu*y[1])) )
}

mu <- 5

# number of mesh points: 12
x <- seq(0, 1, len = 12)

Sol <- bvptwp(yini = c(y = 0, dy = NA), yend = c(1, NA),
          x = x, fun = Troesch)

plot(Sol)

Try the bvpSolve package in your browser

Any scripts or data that you put into this service are public.

bvpSolve documentation built on Sept. 23, 2021, 3 a.m.