powered by
These functions are used to create cumulative operators in LaTeX. They take care of the sum, prod and int functions.
LaTeX
sum
prod
int
Sum(f, from = lsymb(""), to = lsymb("")) Prod(f, from = lsymb(""), to = lsymb("")) Int(f, meas = lsymb("dx"), from = lsymb(""), to = lsymb(""))
An object of class latex_symb whose repr is the LaTeX code for the cumulative operator concatenated with the limits and the expression.
latex_symb
repr
An expression to be summed, multiplied or integrated.
The lower limit of the sum, product or integral.
The upper limit of the sum, product or integral.
The measure of the integral.
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)
Run the code above in your browser using DataLab