I'm looking for a library in (preferably) Scala or Java that supports symbolic algebra (solving equations in an algebraic way, not just numerically). It would also be really great if it supported step-by-step solutions, though not strictly necessary.
Any ideas?