File size: 277 Bytes
2d7f0f4
 
 
b61ff5c
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
---
license: apache-2.0
---
wlaminack/nonlineartesting2

def basic(array1):
    x=(array1[0]-.5)
    y=(array1[1]-.5)
    z=(array1[2]-.5)
    t=(array1[3]-.5)
    r2=x*x+y*y+z*z+t*t
    return 7*np.sin(9*r2)+np.random.random()*(array1[4]-.5)
f=np.apply_along_axis(basic, 1, a)