powered by
A method extending `rep` to dual objects
# S3 method for dual rep(x, ...)
A dual object.
a dual vector
extra parameters (typically, 'times', 'length.out' or 'each')
x <- rep( dual(1:2), each = 4 ) x d(x)
Run the code above in your browser using DataLab