Creates a Vector.Variable object.
Using the constructor directly for creating vector objects is not recommended.
The name with which the Vector.Variable is going to be identified.
Creates a Vector.Variable object from an array. The array may contain known {@link Scalar.Constants} and, for the components yet unknown, Scalar.Variable. This allows for creation of vectors whose few components are known before hand and the rest are not.
Using the constructor directly for creating vector objects is not recommended.
The name with which the Vector.Variable is going to be identified.
The array containing the values with which to initialise the vector variable object.
Returns the components of this
vector. The index values start
from 1
instead of the commonly used starting index 0
.
The Scalar element at given index.
Evaluates and returns the negated value of a vector constant. A negative vector \( - \overrightarrow{A} \) is defined such that
\[ \overrightarrow{A} + \left( - \overrightarrow{A} \right) = \overrightarrow{0} \].
Component wise, if \( \overrightarrow{A} = a_i \hat{e_i} \), it can be expressed as
\[ - \overrightarrow{A} = -a_i \hat{e_i} \].
Creates and returns a Vector.Expression for the addition of
two Vector objects. The type of that
does not matter because
adding a variable vector to another vector always results in an expression.
Expression for sum of this
and that
.
Creates and returns a Vector.Expression for the cross product of
two Vector objects. The type of that
does not matter because
cross multiplying a variable vector to another vector always results
in an expression.
Expression for vector product of this
and that
.
Creates and returns a Vector.Expression for the dot product of
two Vector objects. The type of that
does not matter because
dot multiplying a variable vector with another vector always results
in an expression.
Expression for inner product of this
and that
.
Checks whether a method exists on the object or as a static member of the class.
Name of the method.
Creates and returns a Vector.Expression for the scaling of
this
Vector object. The type of that
does not matter because
scaling a variable vector always results in an expression.
The scale factor.
Expression for scaling this
.
Creates and returns a Vector.Expression for the subtraction of
two Vector objects. The type of that
does not matter because
subtracting a variable vector from another vector always results in an expression.
Expression for subtracting that
from this
.
Computes the magnitude of a constant vector numerically.
Computes the magnitude of a given vector. If A
vector is a constant
vector then numerically calculates the magnitude otherwise creates a
scalar Expression and returns the same.
For a given constant vector A
, numerically evaluates the unit vector along A
.
The Vector.Constant along which the unit vector is to be calculated.
The unit vector along the given Vector A
.
For a given variable vector A
, creates an Expression for the unit vector along A
.
The Vector.Constant along which the unit vector is to be calculated.
The unit vector along the given Vector A
.
Generated using TypeDoc
Represents vector variables. That is, all the vector components are either Scalar.Constants or Scalar.Variables. All the components are interpreted as in the Cartesian system.