Learn R Programming

polyMatrix (version 0.3.1)

symb: The printing symbol of the given polynomial matrix

Description

Get the printing symbol of the given polynomial matrix

Usage

symb(pm)

Arguments

pm

a polyMatrix class object

Value

One character, which used to print the polynomials in default cases

Details

The polynomial matrix objects contains a character to sign the variable of the polynomials. The system default is 'x'.

See Also

dim.polyMatrix, degree.polyMatrix, degree.polynomial

Examples

Run this code
# NOT RUN {
pM <- polyMgen.d(2,2,rawData=
   ch2pn(c("-3+s^3","2+4*s","s^2","1"),symb="s"))
pM

# -3 + x^3   x^2
#  2 + 4*x    1

symb(pM) # "x"

pM <- polyMgen.d(2,2,rawData=
   ch2pn(c("-3+x^3","2+4*x","x^2","1")),symb="L")
pM
# -3 + L^3   L^2
#  2 + 4*L    1

symb(pM) # "L"

# clean up
# rm(pM)
# }

Run the code above in your browser using DataLab