Generate C/MathML/LaTeX/JavaScript code string from a Basic or VecBasic object.

codegen(x, type = c("ccode", "mathml", "latex", "jscode"))

Arguments

x

A Basic or a VecBasic object.

type

One of "ccode", "mathml", "latex" and "jscode".

Value

A character vector.