For a fake function like:
fun[x_] := x^0/x!;
and list:
list={0,0,0.1,0.2,0.9,0.8,0,0};
It will get error in this way cause the 0^0 is indeterminate:
fun[list]
In that case,I want to just leave the 0 element in the list as it is and only calculate the element that larger than 0. Are there some easy and fast way to implement this?
fun[x_?Positive] := x^0/x!;fun[0]=0;
$\endgroup$