Learn R Programming

freealg (version 1.1-8)

linear: A simple free algebra object

Description

Create simple free algebra objects including linear expressions. For example:


> linear(1:3)
free algebra element algebraically equal to
+ 1*a + 2*b + 3*c
> linear(1:3,power=5)
free algebra element algebraically equal to
+ 1*aaaaa + 2*bbbbb + 3*ccccc
>

Usage

linear(x,power=1)

Arguments

x

Numeric vector of terms

power

Integer vector of powers

Author

Robin K. S. Hankin

See Also

constant, zero

Examples

Run this code
linear(1:3)         
linear(1:3,power=5)
linear(1:3,power=3:1)

Run the code above in your browser using DataLab