Demonstration of the Vector class, as it allows to perform vector space operations.
Demonstration of the Vector class, as it allows to perform vector space operations.
#include <eagle/Vector.hpp>
#include <eagle/PhysicalSpace.hpp>
int VectorExample()
{
a[2] = 13.0;
b = 12.0, 34.0, 27.1, 5.0;
c = a + b;
d = 5*c;
d /= 10.0;
double AD = InnerProduct(a,d);
PhysicalSpace::tvector V;
V = {5,4,3};
cout <<
"Tangential Vector " << V <<
" with normalization is "<< V.unit() <<
endl;
return 1;
}
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)