- To: mathgroup at smc.vnet.net
- Subject: [mg80546] Re: IsExact
- From: Albert <awnl at arcor.net>
- Date: Sun, 26 Aug 2007 02:55:29 -0400 (EDT)
- References: <firstname.lastname@example.org>
carlos at colorado.edu wrote:
> Let c be a 1D list of scalar coefficients, numeric or symbolic,
> real or complex. No entry is a list. Examples:
> I need a function IsExact[c] that returns False if
> at least one entry of c is floating, or if it contains one
> floating number; else True. For example, tests on
> c1 and c2 should return True; the others False.
my 2 cent:
IsExactQ[x_] := (Length[Cases[x, _Real, Infinity]] == 0)
it doesn't get the last one right, if x is not set to any value. But
this will not be possible, since c6 doesn't know anything about N having
been applied to x...
Prev by Date:
Cell brackets on left ?
Next by Date:
Previous by thread:
Next by thread: