Thank you very much for your quick reply. I am still puzzled by the fact that ev(diff(sin(x),x), x=%pi) returns 0 instead of an error. such as in the case of ev(diff(sin(x),x), x=%pi/4).