
Last chance! 50% off unlimited learning
Sale ends in
Methods have been defined in order to allow the concatenation of `dual` objects together and with constant objects.
# S4 method for numericOrArray
c(x, ...)
an object of class dual.
first object to concatenate
other objects
x <- dual( 1 )
# concatenation with a constant
x <- c(x, 2)
x
d(x)
# concatenation of dual objects
x1 <- sum(x)
x2 <- sum(x**2)
y <- c(a = x1, b = x2) # you can use named arguments
y
d(y)
Run the code above in your browser using DataLab