license:apache-2.0 region:us
---
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)