MathGroup Archive 1999

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

Search the Archive

Re: Checking for non-complex numerics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg21168] Re: Checking for non-complex numerics
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 17 Dec 1999 01:22:48 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <831k5g$e2e@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,


and somthing like

ComplexQ[_Complex] := True

ComplexQ[a_] := FreeQ[a, I] && FreeQ[a, Complex]

does not work ?

Jens    

DIAMOND Mark wrote:
> 
> I would like a function that returns True for non-complex numerics only. To
> be more specific, anything that results in NumericQ returning True is OK,
> such as Pi, E, 1, -2.6.
> 
> a=-1.5;
> followed by NonComplexQ[a] should return True. But
> NonComplexQ[b] and NonComplexQ[Pi I] should return False as should
> NonComplexQ[1.1 + 3 I].
> 
> I have been able to a function that satisfies various subsets of these
> conditions, but not the whole lot ... yet it seems the kind of problem for
> which there should be a simple and obvious solution.


  • Prev by Date: Re: Solve transcendental functions
  • Next by Date: Re: back up for hyperlinks?
  • Previous by thread: Re: Checking for non-complex numerics
  • Next by thread: Graphics3D[] objects clipping & PlotRange