Learn R Programming

tropAlgebra (version 0.1.0)

vectorMultiply: Product: Tropical Algebra Function

Description

This functio returns the product of two vectors Vectors length must be the equal.

Usage

vectorMultiply(x,y)

Arguments

x

A numeric vector

y

A numeric vector

Value

Returns the product of x and y vectors.

Details

e.g. X<-c(5,6,7) Y<-c(1,2,3) Now function call: vectorAdd(X,Y) Then the Product is: [1] [2] [3] 6 8 10

Examples

Run this code
# NOT RUN {
 x<-c(5,6,7)
y<-c(1,2,3)
 vectorMultiply(x,y)
# }

Run the code above in your browser using DataLab