|
[Date Index]
[Thread Index]
[Author Index]
Re: How to get rid of If[ ... ] in a result
- To: mathgroup at smc.vnet.net
- Subject: [mg65181] Re: [mg65149] How to get rid of If[ ... ] in a result
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Fri, 17 Mar 2006 00:13:25 -0500 (EST)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
y=If[Element[x, Integers],y1,y2];
Simplify[y,Element[x, Integers]]
y1
Simplify[y,!Element[x, Integers]]
y2
Bob Hanlon
>
> From: "hanspi" <hanspi at schmid-werren.ch>
To: mathgroup at smc.vnet.net
> Subject: [mg65181] [mg65149] How to get rid of If[ ... ] in a result
>
> 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
>
>
Prev by Date:
Delayed Differential Equations [NDelayDSolve]
Next by Date:
Re: Laplace Transform
Previous by thread:
Re: How to get rid of If[ ... ] in a result
Next by thread:
getting one random number
|