Ran into the following behaviour from ratcoef
that I don't understand, and was hoping someone could help clarify what's happening.
ratcoef(3*sqrt(x)+5/sqrt(x),x,1/2);
> 3
as epected. However,
ratcoef(x^(3/2)+3*sqrt(x)+5/sqrt(x),x,1/2);
> 0
and yet changing the first power from 3/2
to 3
gives:
ratcoef(x^(3)+3*sqrt(x)+5/sqrt(x),x,1/2);
> 3
The documentation clearly says to not use ratcoef
for negative coefficients, but I can't see how the limitation would explain these results. Any suggestions would be very much appreciated!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…