Question: How do I work with pieces of a symbolic result?

I have a procedure which gives symbolic output of the form a/b + c/(d*Pi) where a, b, c, d are integers.  For example, 401/2 - 1880/(3Pi).  Given this expression, what are the Maple commands I can use to pull out the four integer values and assign them to other variables?  (In the example, 401, 2, -1880, and 3.)  Note that this is not a calculation problem, it is a pattern matching/string manipulation problem.

Please Wait...