Use zero slope tangent planes for transcendental functions (#2803)