powered by
## Scalar product dotProd(U, V) ## Norm of a vector vectNorm(U) ## Rotation of the components of a vector rotVect(U, n = 1) ## Vectorial product vectProd(U, V)
dotProct
vectNorm
rotVect
vectProct
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