prettyQspray {qspray}R Documentation

Pretty polynomial

Description

Pretty form of a qspray polynomial.

Usage

prettyQspray(qspray, vars = NULL)

Arguments

qspray

a qspray object

vars

variable names; NULL for "x1", "x2", ...

Value

A character string.

Examples

library(qspray)
P <- (qlone(1) + "1/2"*qlone(2))^2 + 5
prettyP <- prettyQspray(P, vars = c("x", "y"))
prettyP
cat(Ryacas::yac_str(sprintf("PrettyForm(%s)", prettyP)))
Ryacas::yac_str(sprintf("TeXForm(%s)", prettyP))

[Package qspray version 3.1.0 Index]