d1f: First Derivative

Description Usage Arguments Author(s) Examples

View source: R/d1f.R

Description

The first derivative of a function evaluated at point(s) x.

Differentiation is a method to compute the rate at which the dependent output (f(x)) changes with respect to the change the independent input (x). The first derrivative can be used to obtain an exact value for the slope of the tangent line, at the point where the derivative was evaluated.

Usage

1
  d1f(f, x)

Arguments

f

The function that you want to take the derivative of

x

The point or vector of points where the derivative will be evaluated

Author(s)

Damon McCafferty damon.mccafferty@economics.utah.edu

Examples

1
2
x = runif(10, pi/3, 3*pi/4)
df(tan, x)

JackStat/CompPack documentation built on May 7, 2019, 10:16 a.m.