powered by
Limit of a function
limf(f, var, val, dir = NULL, doit = TRUE)
Function to take limit of
Variable to take limit for (either string or caracas_symbol)
caracas_symbol
Value for var to approach
var
Direction from where var should approach val: '+' or '-'
val
'+'
'-'
Evaluate the limit immediately (or later with doit())
doit()
# 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