Re: How to get rid of If[ ... ] in a result
- To: mathgroup at smc.vnet.net
- Subject: [mg65175] Re: How to get rid of If[ ... ] in a result
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Thu, 16 Mar 2006 06:22:47 -0500 (EST)
- Organization: Uni Leipzig
- References: <dvarv1$c1j$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Assuming[Element[t/2, Integers], If[Element[t/2, Integers], x, y] // Simplify ] or Refine[ If[Element[t/2, Integers], x, y] // Simplify, Element[t/2, Integers] ] or If[Element[t/2, Integers], x, y] // Simplify[#, Element[t/2, Integers]] & ?? Regards Jens "hanspi" <hanspi at schmid-werren.ch> schrieb im Newsbeitrag news:dvarv1$c1j$1 at smc.vnet.net... | Dear Mathematica users, | | I often get results like the following when I do symbolic sums, in this | case of a Sin[ ... ]: | | ... ... ... If[2/T Element Integers, x, y] ... ... | | Now I know that 2/T is an Integer. How can I tell Mathematica that this | is so, such that it removes the 'If'? It seems that Assumptions don't | work for sums. | | Kind regards, | Hanspeter |