Learn R Programming

RISCA (version 1.0.4)

differentiation: Numerical Differentiation with Finite Differences.

Description

This function allows to approximate the derivative of a function by the finite differences method.

Usage

differentiation(x, fx)

Arguments

x

A numeric vector with the \(x\) values.

fx

A numeric vector with the \(f(x)\) values.

Details

Numerical differentiation is a method of approximating the derivative of a function \(f\) at particular value \(x\).

Examples

Run this code
x <- c(0.0, 0.2, 0.4)
fx <- c(0.00000, 0.74140, 1.3718)
differentiation(x, fx)

Run the code above in your browser using DataLab