Documentation moved.
This entry is documented with its primary interface. Open the documentation →
Function
src/index.ts:1090nerdamer.dot
nerdamer.dot(a: ParserEntity, b: ParserEntity): ExpressionComputes the dot product of two Vectors or preserves two symbolic operands.
throws
core!UnexpectedDataType If exactly one operand is not a Vector or the two operands are of incompatible parser types.
throws
core!DimensionError If Vector lengths differ.
Parameters
| Name | Type | Description |
|---|---|---|
a | ParserEntity | First Vector, or a symbolic Expression operand. |
b | ParserEntity | Second Vector, or a symbolic Expression operand. |
Returns
Expression — The scalar dot product for Vectors, or an unevaluated dot(a, b)
Expression when both operands are Expressions.
