Normalize the array Z by subtracting its mean and dividing by its standard deviation: (Z - mean) / std.
Z
(Z - mean) / std
solve(...)