Re: Integrate[ ] returns If[ ] function; how to say it's True?
- To: mathgroup at smc.vnet.net
- Subject: [mg9445] Re: Integrate[ ] returns If[ ] function; how to say it's True?
- From: hans.steffani at e-technik.tu-chemnitz.de (Hans Steffani)
- Date: Thu, 6 Nov 1997 02:39:55 -0500
- Organization: University of Technology Chemnitz, FRG
- Sender: owner-wri-mathgroup at wolfram.com
Daniel Lichtblau <danl at wolfram.com> writes: >To get the second element from the If[...] result, one can simply use >Part to extract it: >In[23]:= ee = If[a,b,c] >Out[23]= If[a, b, c] >In[24]:= ee[[2]] >Out[24]= b ee = If[a,b,c] ee /. a->True or ee = If[a,b,c] ee /. ee[[1]]->True h.f.s. -- Hans Friedrich Steffani Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz mailto:hans.steffani at e-technik.tu-chemnitz.de http://www.tu-chemnitz.de/~hfst/