Dear all,
I'm surprised why "N" is not affecting all parameters of "Power", even "Power" has not the attribute "NHoldRest"? Is this feature documented somewhere, or is it a bug?
Input:
Attributes[Power]
SetAttributes[myPower, Attributes[Power]]
Power[x, 2] //N //FullForm
Power[2, y] //N //FullForm
myPower[x, 2] //N //FullForm
myPower[2, y] //N //FullForm
Result:
{Listable, NumericFunction, OneIdentity, Protected}
Power[x, 2]
Power[2.`, y]
myPower[x, 2.`]
myPower[2.`, y]
Mathematica 10.0.2 (x64), Windows 7