How can I do something like double a polynomial?
I have this:
b <- function(ftn){2*ftn}
b(function(x) x)
But I get Error in 2 * ftn : non-numeric argument to binary operator
Is there some sort of x <-2x replacement I can do?
Sorry I'm a complete beginner.