<div id="comment:0"></div> ``` sage: (x^(1/2)).coefficient(x, 1/3) sqrt(x) ``` It seems that `1/3` gets `0` (floor division, whyever). EDIT: because the function takes an integer: ``` INPUT: - ``s`` - expression - ``n`` - integer, default 1 ``` so it's rather an enhancement. Reported as https://github.com/pynac/pynac/issues/216 Depends on #23820 Component: **symbolics** Author: **Ralf Stephan** Branch/Commit: **[`6d8d994`](https://github.com/sagemath/sagetrac-mirror/commit/6d8d9942ebfc4f9d8b83d52e0daca2146476cecf)** Reviewer: **Travis Scrimshaw** _Issue created by migration from https://trac.sagemath.org/ticket/19996_