expand.grid(seq(0, 1, length.out = 4), seq(0, 1, length.out = 4))
—
两个0,1表示二元函数的两个输入的范围
4表示对每个维度取几个点