MathGroup Archive 2004

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

Search the Archive

Re: Boolean Type

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52426] Re: Boolean Type
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 27 Nov 2004 01:40:19 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <co6i3r$ns0$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
and
f[x : True | False] :=

f[x_ /; MemberQ[{True, False}, x]] :=

doesn not work ?

Regards
  Jens

"JMyers6761" <jmyers6761 at aol.com> schrieb im Newsbeitrag 
news:co6i3r$ns0$1 at smc.vnet.net...
> All,
> I would like to define a function wich would work (in different ways) for 
> both
> real and boolean input argruments. How should I best implement a function 
> which
> would implement the following intent?
>
> func[x_Real]:= some function involving a real varialble x
>
> func[x_Boolean]:= some function involving a boolean variable x
>
> Thanks for any help.
>
> Al Myers
>
> 



  • Prev by Date: Re: Non-algebraic solution
  • Next by Date: Re: Boolean Type
  • Previous by thread: Re: Re: Boolean Type
  • Next by thread: Re: Boolean Type