I.4.4.3 “deriveVectorToOneScal” method
“deriveVectorToOneScal” method builds a new Result object by performing an operation on all the
values of the Result object to which it is applied. The Result object to which the method is applied
must be vectorial. The created Result object is scalar. Possible values of the “Method” String
argument are:
- “Component X”: returns the first component of the vector.
- “Component Y”: returns the second component of the vector.
- “Component Z”: returns the third component of the vector.
- “abs”: returns .
- “sq”: returns .
This method works for Real Results as well as for Complex Results. When applied to a Complex Result
object, the method works as follows:
- The three “Component” methods produce a Complex scalar Result object.
- The method “sq” produces the scalar product of the vector by its conjugate. This is a Real
scalar Result.
- The method “abs” produces the square root of the “sq” method. This is also a Real scalar
Result.