Salome HOME
projects
/
modules
/
yacs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update copyrights
[modules/yacs.git]
/
doc
/
exemples
/
exemple2
/
func.py
1
def addvec(x, y):
2
n = len(x)
3
z = []
4
for i in range(n):
5
z.append(x[i] + y[i])
6
return z
7
8
def prdscl(x, y):
9
n = len(x)
10
S = 0
11
for i in range(n):
12
S = S + x[i] * y[i]
13
return S