Documentation moved.
This entry is now part of the unified function reference. Open the unified page →
Function
src/core/classes/vector/functions.ts:20dot
dot(a: ParserEntity, b: ParserEntity): ExpressionComputes the dot product of two Vectors or preserves two symbolic operands.
throws
UnexpectedDataType If exactly one operand is not a Vector or the two operands are of incompatible parser types.
throws
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.
