Solved
Bug in Mathcad 15 and also in Prime 3
After looking at the worksheet posted here
http://communities.ptc.com/message/268193#268193
I think this is a bug. Its present in Mathcad and in Prime alike.

It seems to work with any function - built-in or user defined.
Mathcad should not allow the first definition.

