Learn R Programming

latexSymb (version 1.0.0)

Sum: Cumulative Operators

Description

These functions are used to create cumulative operators in LaTeX. They take care of the sum, prod and int functions.

Usage

Sum(f, from = lsymb(""), to = lsymb(""))
Prod(f, from = lsymb(""), to = lsymb(""))
Int(f, meas = lsymb("dx"), from = lsymb(""), to = lsymb(""))

Value

An object of class latex_symb whose repr is the LaTeX code for the cumulative operator concatenated with the limits and the expression.

Arguments

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.

Examples

Run this code
    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