derivative: First derivative for the function and value given

Description Usage Arguments Value Examples

View source: R/roots.R

Description

First derivative for the function and value given

Usage

1
derivative(fnc, x, incrx = 0.01)

Arguments

fnc

Function

x

Value in which the derivative should be calculated

incrx

increment in x to calculate the derivative

Value

derivative value at the value given

Examples

1
2
3
fnc<-function(x) apparent_equatorial_position(x,"sun")$declination
x <- str2jd("2014-03-08")
derivative(fnc,x)

Susarro/arqastwb documentation built on May 21, 2019, 10:28 a.m.