MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Domain of a function

Forgot to mention the obvious:

Reduce[Element[x | Sqrt[2 + x], Reals]]

x >= -2

Andrzej Kozlowski

On 28 Nov 2011, at 11:52, Andrzej Kozlowski wrote:

> On 27 Nov 2011, at 10:14, Tutor wrote:
>> Element[x | Sqrt[2 + x], Reals]; what exactly does "|" in this case?
> The first argument of Element can be a pattern and the assertions is 
> that everything that matches the pattern is real. So what kind things 
> match the pattern? For one, x matches it. Also, Sqrt[2+x] matches it and 
> nothing more does. In other words, both x and Sqrt[2+x] must be real.
> Andrzej Kozlowski

  • Prev by Date: how to get string in sci. notation to a number?
  • Next by Date: Re: Problem with Patterns and Integrate
  • Previous by thread: Re: Domain of a function
  • Next by thread: Re: Domain of a function