Display symbolic expressions as rational.
20 views (last 30 days)
How can I display symbolic expressions as rationals? Functions like sympref or vpa allows to display in decimal format, but doesn't provide a way to display symbolic expressions as rationals.
Instead of that output I desire the rational expression (or similar):