def _cached_p_roots(n):
if n in _cached_p_roots.cache:<EOL><INDENT>return _cached_p_roots.cache[n]<EOL><DEDENT>_cached_p_roots.cache[n] = p_roots(n)<EOL>return _cached_p_roots.cache[n]<EOL>
Cache p_roots results for speeding up multiple calls of the fixed_quad function.