Jump to content

Dot product: Difference between revisions

Tag: Manual revert
Line 1,012:
{{out}}
<pre>3</pre>
 
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
func dotprod a[] b[] . r .
r = 0
for i to len a[]
r += a[i] * b[i]
.
.
call dotprod [ 1 3 -5 ] [ 4 -2 -1 ] r
print r
</syntaxhighlight>
 
=={{header|EchoLisp}}==
2,060

edits

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