Learn R Programming

caracas (version 1.0.1)

limf: Limit of a function

Description

Limit of a function

Usage

limf(f, var, val, dir = NULL, doit = TRUE)

Arguments

f

Function to take limit of

var

Variable to take limit for (either string or caracas_symbol)

val

Value for var to approach

dir

Direction from where var should approach val: '+' or '-'

doit

Evaluate the limit immediately (or later with doit())

Examples

Run this code
# NOT RUN {
if (have_sympy()) {
  x <- symbol("x")
  limf(sin(x)/x, "x", 0)
  limf(1/x, "x", 0, dir = '+')
  limf(1/x, "x", 0, dir = '-')
}

# }

Run the code above in your browser using DataLab