Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6411

Re: Domain of a function

From Peter Pein <petsie@dordos.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Domain of a function
Date 2011-11-12 12:42 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j9lpke$lif$1@smc.vnet.net> (permalink)
References <j9b6lb$4sv$1@smc.vnet.net>

Show all headers | View raw


Am 08.11.2011 13:17, schrieb Tutor:
> Hallo!
>
> How can I find the domain of a function?
>
> something like this: ForAll[Element[f,Reals]] and it should return
> something like this: x element ]-2,oo[
>
> I have NO idea, how this can be done for a function f...
>

With a little luck, Reduce can do this:


In[20]:= Reduce[Element[x | Sqrt[2 + x], Reals], x]
Out[20]= x >= -2
In[21]:= Reduce[Element[x | Sqrt[1/2 + Sin[x]], Reals, x, Reals]
Out[21]= (Element[C[1], Integers] && (x == -Pi/6 + 2 Pi C[1] || x== 7 
Pi/6 + 2 Pi C[1])) ||
  (Element[C[1], Integers] && 1/6 (-Pi + 12 Pi C[1]) < x < 1/6 (7 Pi + 
12  Pi C[1]))

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Domain of a function Tutor <alfred.muehlleitner@gmx.at> - 2011-11-08 12:17 +0000
  Re: Domain of a function Peter Pein <petsie@dordos.net> - 2011-11-12 12:42 +0000
    Re: Domain of a function Tutor <alfred.muehlleitner@gmx.at> - 2011-11-27 09:18 +0000
    Re: Domain of a function Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-11-28 10:52 +0000
    Re: Domain of a function Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-11-29 12:12 +0000
  Re: Domain of a function Bob Hanlon <hanlonr357@gmail.com> - 2011-11-28 10:59 +0000

csiph-web