定义在R上的函数f(x)满足①f(x+y)+f(x-y)=2f(x)cosy②f(0)=0,f(π/2)=1.求f(x)