单项选择题

下列各对函数中,互为反函数的是( )。
A.y=sinx与y=cosx B.y=ex与y=e-x
C.y=tanx与y=cotx D.y=2x与y=1/2x

A.y=sinx与y=cosx
B.y=ex与y=e-x
C.y=tanx与y=cotx
D.y=2x与y=1/2x