Syntax:numpy.fromfunction(function, shape, dtype)
Parameters:
function:[callable] The function is called with N parameters, where N is the rank of shape. Each parameter represents the coordinates of the array varying along a specific axis.
shape:[(N, ) tuple of ints] Shape of the output array, which also determines the shape of the coordinate arrays passed to function.
dtype:[data-type, optional] Data-type of the coordinate arrays passed to function.
Return:The output array.