3 dimensional linear equation