New answers tagged

3 votes

Delete first case

list = {1/3, 1/2, 3/4, 1/2, 1/2, 1/2}; item = 1/2; Using ReplaceAll ...
eldo's user avatar
  • 70.5k
4 votes

PatternTest in Function

h = If[NumericQ[#], #^2, HoldForm[h][#]] &; h /@ {3, a} {9, h[a]} ...
eldo's user avatar
  • 70.5k

Top 50 recent answers are included