VectorProduct
This method computes the vector product.
Calling example:
c = VectorProduct(a, b)
See following example:
- ️܀ See example
- ↢
This example shows the usage of Vector_Product
method which is defined in VectorProductUtility
MODULE.
PROGRAM main
USE easifemBase
IMPLICIT NONE
call ok( all(vectorProduct(a=[1.0, 0.0, 0.0], b=[0.0, 1.0, 0.0]) &
& .approxeq. [0.0, 0.0, 1.0]), "vectorProduct" )
call ok( all(vectorProduct(a=[0.0, 1.0, 0.0], b=[1.0, 0.0, 0.0]) &
& .approxeq. [0.0, 0.0, -1.0]), "vectorProduct" )
END PROGRAM main
note
Vector_Product
is an alias to VectorProduct
method.