Algorithms for partial fraction decomposition and rational function integration | Synapse