solve boundary value problems for ordinary differential equations

bvpexample(x)

bvpexample10(x)

Arguments

x

proposed initial x-value

Value

a data frame of x and y values

Details

The euler method implements the Euler method for solving differential equations. The codemidptivp method solves initial value problems using the second-order Runge-Kutta method. The rungekutta4 method is the fourth-order Runge-Kutta method.

Examples

bvpexample(-2)
#> [1] -2.782773
bvpexample(-1)
#> [1] -1.775453
bvpexample(0)
#> [1] -0.5779241
bvpexample(1)
#> [1] 0.8409145
bvpexample(2)
#> [1] 2.518243
## (bvp.b <- bisection(bvpexample, 0, 1))
## (bvp.s <- secant(bvpexample, 0))