If one of the arguments to subsy() is a vector of length greater than 1, it does not substitute as expected:
> P <- as.mvp("a^2+a*b+b^4")
> P
mvp object algebraically equal to
a b + a^2 + b^4
> subsy(P,a=1,b=2) # works
[1] 19
> subsy(P,a=1) # works
mvp object algebraically equal to
1 + b + b^4
> subsy(P,a=1:2,b=1:2) # fails
mvp object algebraically equal to
a b + a^2 + b^4
>
If one of the arguments to
subsy()
is a vector of length greater than 1, it does not substitute as expected: