public final class ExprReducer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExprReducer.Reduced
Class for holding a reduced expression that is represented by the formula:
constant + polynomial, where constant is a constant integer value and
polynomial is expression that cannot be reduced any further.
|
Constructor and Description |
---|
ExprReducer() |
Modifier and Type | Method and Description |
---|---|
static ExprReducer.Reduced |
reduce(Expr expr)
Transforms the expression to the format: polynomial + constant, where polynomial is some
expression that could not be further simplified and constant is an integer constant value.
|
public static ExprReducer.Reduced reduce(Expr expr)
expr
- Expression to be reduced.