A q-analogue for partial-fraction decomposition of a rational function and its application | Synapse