Simplification for the expression blowup that occurs while summing products, as in matrix multiplication. Only algebraic structure is handled; non-algebraic subexpressions are left alone.
Examples
x <- Symbol("x")
dotprodsimp(x/(x - 1) - 1/(x - 1))
#> 1