Sum | R Documentation |
These functions are used to create cumulative operators in LaTeX
. They take care of the sum
, prod
and int
functions.
Sum(f, from = lsymb(""), to = lsymb(""))
Prod(f, from = lsymb(""), to = lsymb(""))
Int(f, meas = lsymb("dx"), from = lsymb(""), to = lsymb(""))
f |
An expression to be summed, multiplied or integrated. |
from |
The lower limit of the sum, product or integral. |
to |
The upper limit of the sum, product or integral. |
meas |
The measure of the integral. |
An object of class latex_symb
whose repr
is the LaTeX
code for the cumulative operator concatenated with the limits and the expression.
i <- lsymb("i")
n <- lsymb("n")
x <- lsymb("x")
f <- function(x) lsymb("f") * pths(x)
Sum(i, from = 1, to = n)
Prod(i, from = 1, to = n)
Int(f(x), from = 0, to = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.