powered by
Basic vectorial operations such as scalar product and vectorial product
dotProd(U, V)vectNorm(U)rotVect(U, n = 1)vectProd(U, V)
vectNorm(U)
rotVect(U, n = 1)
vectProd(U, V)
dotProct return a single element numeric vector.
dotProct
vectNorm return a single element numeric vector.
vectNorm
rotVect return a numeric vector of length 3.
rotVect
vectProct return a numeric vector of length 3.
vectProct
a numeric vector of length 3.
an integer.
matmult
Vx <- c(3,0,0) vectNorm(Vx) Vx <- Vx / vectNorm(Vx) Vy <- c(0,1,0) Vz <- vectProd(Vx, Vy) print(Vz)
Run the code above in your browser using DataLab