RobinHankin / mvp

https://robinhankin.github.io/mvp/
8 stars 3 forks source link

bug in `rmvp()` #67

Closed RobinHankin closed 1 year ago

RobinHankin commented 1 year ago

Argument pow of rmvp() is claimed in rmvp.Rd to be "the maximum power of each symbol", but:

suppressMessages(library("mvp"))
rmvp(pow=2)
#> mvp object algebraically equal to
#> 6 a b d^3 e f^2 + 2 a^2 b^2 e^4 f + 4 a^2 d e f^4 + 5 a^3 c e^3 f + 3 a^4 e^3
#> f^2 + c^2 d^3 e^3 + 7 c^3 d e^2 f^2

Above we see the first term including a d^3 term, that is of the third power, and I was expecting the highest power to be 2. There is a note in rmvp.Rd but frankly pow should do what it says on the tin.