piecewise_simplify(expr) simplifies the expressions and conditions of a
Piecewise, rewrites univariate conditions as disjoint intervals, uses
equality conditions to simplify their expressions, and merges segments
that agree, as SymPy's piecewise_simplify(). simplify_univariate()
writes a boolean in one variable as a union of intervals.
distribute_or_over_and() puts a boolean into disjunctive form.
Usage
distribute_or_over_and(expr)
piecewise_simplify(expr, deep = TRUE, kw = .simp_kw(), ...)
simplify_univariate(expr)Arguments
- expr
A Piecewise or boolean expression.
- deep
Unused; kept for SymPy's signature.
- kw
Options of
simplify()(internal).- ...
Ignored.