Learn R Programming

cmna (version 1.0.5)

bvp: Boundary value problems

Description

solve boundary value problems for ordinary differential equations

Usage

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

Run this code
# NOT RUN {
bvpexample(-2)
bvpexample(-1)
bvpexample(0)
bvpexample(1)
bvpexample(2)
## (bvp.b <- bisection(bvpexample, 0, 1))
## (bvp.s <- secant(bvpexample, 0))

# }

Run the code above in your browser using DataLab