taylor | R Documentation |
Taylor expansion
taylor(f, x0 = 0, n = 6)
f |
Function to be expanded |
x0 |
Point to expand around |
n |
Order of remainder term |
drop_remainder()
if (has_sympy()) {
def_sym(x)
f <- cos(x)
ft_with_O <- taylor(f, x0 = 0, n = 4+1)
ft_with_O
ft_with_O %>% drop_remainder() %>% as_expr()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.