powered by
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 >
linear(x,power=1)
Numeric vector of terms
Integer vector of powers
Robin K. S. Hankin
constant, zero
constant
zero
linear(1:3) linear(1:3,power=5) linear(1:3,power=3:1)
Run the code above in your browser using DataLab