Learn R Programming

fntl (version 0.1.1)

jacobian0: Numerical Jacobian Matrix

Description

Numerical Jacobian Matrix

Usage

jacobian0(f, x, args)

Value

A list with the form of a jacobian_result described in section "Jacobian" of the package vignette.

Arguments

f

Function to differentiate.

x

Vector at which to evaluate the Jacobian.

args

List of additional arguments from the function richardson_args.

Examples

Run this code
f = function(x) { cumsum(sin(x)) }
x0 = seq(1, 10, length.out = 5)
args = richardson_args()
out = jacobian0(f, x0, args)
print(out$value)
numDeriv::jacobian(f, x0)

Run the code above in your browser using DataLab