Jump to content

Dot product: Difference between revisions

add BQN
m (Updated description and link for Fōrmulæ solution)
(add BQN)
Line 503:
-1
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}}==
236

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.