clean_eqn: Process Generated Equations for Readability

Description Usage Arguments Value

View source: R/check_commute.R

Description

Process Generated Equations for Readability

Usage

1
clean_eqn(eqn)

Arguments

eqn

A character vector whose elements are terms in an algebraic equation of the form ax + by +cz..., where a, b, and c are numeric coefficients for unknown variables.

Value

a length-one character vector that drops zero-coefficient terms and separates terms with the correct + and - signs. If all terms are zeroed, the empty string.


ryan-heslin/matador documentation built on Dec. 22, 2021, 8:17 p.m.