The print method, print.spray()
, dispatches to helper functions
print_spray_matrixform()
and print_spray_polyform()
depending on the value of option polyform
; see the examples
section.
Option sprayvars
is a character vector with entries
corresponding to the variable names for printing. The sprayvars
option has no algebraic significance: all it does is affect the print
method.
Function printedvalue()
is a low-level helper function that
takes a numeric argument and returns the value as printed (thus
respecting options scipen
and digits
).
Note that printing a spray object (in either matrix form or polynomial
form) generally takes much longer than calculating it.