Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
|
|
@ -1,8 +1,7 @@
|
|||
func dotprod a[] b[] . r .
|
||||
r = 0
|
||||
func dotprod a[] b[] .
|
||||
for i to len a[]
|
||||
r += a[i] * b[i]
|
||||
.
|
||||
return r
|
||||
.
|
||||
call dotprod [ 1 3 -5 ] [ 4 -2 -1 ] r
|
||||
print r
|
||||
print dotprod [ 1 3 -5 ] [ 4 -2 -1 ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue