ConvDiffCoef: Convert Differential to Difference Eq. Coefficients

Description Usage Arguments Details Value Author(s) Examples

View source: R/ConvDiffCoef.R

Description

Returns difference equation coefficients corresponding to input differential equation coefficients and sample interval.

Usage

1

Arguments

db

Vector of differential equation coefficients

dt

Time interval (s)

Details

Input differential equation is of the form db[1] * f(t) + db[2] * f'(t) + db[3] * f”(t)...

Output difference equation is of the form b[1] * x_i + b[2] * x_(i-1) + b[3] * x_(i-2)...

Value

Coefficients of difference equation.

Author(s)

Jake Anderson

Examples

1
2
3
4
db = c(0, 0, 1) # represents f''(t)
dt = 0.1

ConvDiffCoef(db, dt)

TDD documentation built on May 2, 2019, 4:51 a.m.

Related to ConvDiffCoef in TDD...