AngouriMath

Navigation

← Back to list of members

DotProduct​(AngouriMath.​Entity,​AngouriMath.​Entity)

 Method (no overloads)

Summary

The scalar product dot(a, b) of two vectors of one length, as a node: the sum of the products of
their components, neither side conjugated.

Parameter "left"

The first vector, written out or a name that stands for one.

Parameter "right"

The second vector, written out or a name that stands for one.

Returns

The DotProductf node, computed once both operands are vectors

Remarks

Vectors of different lengths have no scalar product, and the node is left as it is.
https://github.com/asc-community/AngouriMath/issues/105

Example

var dot = MathS.Matrices.DotProduct("a", "b");
Console.WriteLine(dot);
Console.WriteLine(dot.Substitute("a", "[1, 2, 3]").Substitute("b", "[4, 5, 6]").Evaled);

Prints
dot(a, b)
32

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6003 pages online