. . . . . "Isopentenyl diphosphate + NAD(P)(+) + H(2)O = (E)-4-hydroxy-3-methylbut-2-en-1-yl diphosphate + NAD(P)H." .