rust_code() prints Rust (method call syntax such as x.powi(2)),
glsl_code() GLSL, smtlib_code() SMT-LIB s-expressions (relations
become asserts, with declare-const lines for the symbols when
auto_declare is TRUE) and python() a Python snippet that rebuilds
the expression with SymPy. multiline_latex(lhs, rhs, terms_per_line)
breaks a long right side over lines of an align* environment.
print_glsl(), print_python() and print_maple_code() print the
strings.
Usage
rust_code(e, assign_to = NULL, ...)
glsl_code(e, assign_to = NULL)
print_glsl(e, assign_to = NULL)
print_maple_code(e, assign_to = NULL)
python(e)
print_python(e)
smtlib_code(e, auto_declare = TRUE)
multiline_latex(lhs, rhs, terms_per_line = 1, environment = "align*")Arguments
- e
An expression, or for
smtlib_code()a list of them.- assign_to
Optional variable name.
- ...
Printer settings of
rust_code(), as in SymPy (for exampleuser_functionsorcontract).- auto_declare
Declare the symbols as reals.
- lhs, rhs
Sides of the equation.
- terms_per_line
Terms per line.
- environment
The LaTeX environment.