powered by
This function add two vectors and returns the resultant vector Vectors length must be the equal.
vectorAdd(x,y)
A numeric vector
Returns the tropical sum of x and y
x
y
e.g. X<-c(5,6,7) Y<-c(1,2,3) Now function call: vectorAdd(X,Y) Then the sum is: [1] [2] [3] 1 2 3
# NOT RUN { x<-c(5,6,7) y<-c(1,2,3) vectorAdd(x,y) # }
Run the code above in your browser using DataLab