Reduce
is usually careful, compared with Simplify
or Solve
. (Note that the desired result, here represented by ConditionalExpression
, is not really "simpler" in the usual LeafCount
/ Simplify`SimplifyCount
sense used by Simplify
.) One oddity is the mathematically redundant n == 0
in the condition Element[n, Integers] || n == 0
makes a difference: The case n == 0
is not overlooked as it is with just Element[n, Integers]
. This is true for Simplify[Sin[n Pi]/n, Element[n, Integers] || n == 0]
, too, although it returns Sin[n Pi]/n
.
Here is the result of Reduce
, set up to work like Simplify
:
x /. First@Solve[Reduce[(Element[n, Integers] || n == 0) && x == Sin[n Pi]/n], x]
(* ConditionalExpression[0, (n ∈ Integers && n >= 1) || (n ∈ Integers && n <= -1)] *)
Note it returns Undefined
, as it should as a function of an integer variable, if 0
is subsituted for n
:
% /. n -> 0
(* Undefined *)
Simplify
seems to take the less restrictive approach. $\endgroup$