Function onevarpow() is misnamed because it can take any number of variables, as in onevarpow(P,x=1,y=2). It is not just one variable's power (which was the original reason this name was chosen). Also, it returns an mvp object, in general; so it is not a coefficient extraction function. Maybe something like getvarpow() would be more appropriate.
Function
onevarpow()
is misnamed because it can take any number of variables, as inonevarpow(P,x=1,y=2)
. It is not just one variable's power (which was the original reason this name was chosen). Also, it returns anmvp
object, in general; so it is not a coefficient extraction function. Maybe something likegetvarpow()
would be more appropriate.