Dot product: Difference between revisions
Content added Content deleted
m (Updated description and link for Fōrmulæ solution) |
(add BQN) |
||
Line 503: | Line 503: | ||
-1 |
-1 |
||
3</pre> |
3</pre> |
||
=={{header|BQN}}== |
|||
Multiply the two vectors, then sum the result. |
|||
<lang bqn>•Show 1‿3‿¯5 +´∘× 4‿¯2‿¯1 |
|||
# as a tacit function |
|||
DotP ← +´× |
|||
•Show 1‿3‿¯5 DotP 4‿¯2‿¯1</lang> |
|||
<lang bqn>3 |
|||
3</lang> |
|||
=={{header|Bracmat}}== |
=={{header|Bracmat}}== |