Evaluate a 3-D Legendre series at points (x, y, z).
This function returns the values:
The parameters x, y, and z are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after conversion. In either case, either x, y, and z or their elements must support multiplication and addition both with themselves and with the elements of c.
If c has fewer than 3 dimensions, ones are implicitly appended to its shape to make it 3-D. The shape of the result will be c.shape[3:] + x.shape.
x, y, z : array_like, compatible object
c : array_like
values : ndarray, compatible object