Menu

[r7899]: / trunk / course / examples / scipy / example2.3  Maximize  Restore  History

Download this file

7 lines (5 with data), 111 Bytes

1
2
3
4
5
>>> x = r_[-2:3]
>>> x
array([-2, -1, 0, 1, 2])
>>> select([x > 3, x >= 0],[0,x+2])
array([0, 0, 2, 3, 4])