Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Re: Re: Types in Mathematica thread

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62884] Re: [mg62851] Re: Re: Types in Mathematica thread
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Thu, 8 Dec 2005 00:04:10 -0500 (EST)
  • References: <200512060543.AAA03708@smc.vnet.net> <dn3fos$7l2$1@smc.vnet.net> <200512070410.XAA23701@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 7 Dec 2005, at 13:10, albert wrote:

> Hi,
>
>> The discussion was not about testing whether something is a real
>> number or not (in the mathematical sense). This you test with Element
>> [something, Reals]. The discussion was about "types". Please note the
>> title of the thread to which you have just contributed, or even
>> better rerad the thread.  Well, the "type" of objects with head Real
>> in Mathematica is exactly what InexactNumberQ tests for. A
>> mathematica _Real is not a "real number" in the sense of mathematics
>> but precisely an "inexact number".
>
> Basically I agree with your answer, but what about:
>
> In[10]:= InexactNumberQ[0.5 I]
>
> Out[10]= True
>
>

Yes, you are completely right. Complex floats are also inexact  
numbers: I simply forgot about them. Actually, I think this is  
another demonstration that Mathematica does not really have anything  
like "types" in other languages (for example, Complex floats have he  
same head as complex integers while real ones have different heads,  
etc. )


Andrzej



  • Prev by Date: Re: Roman Maeder's Classes.m
  • Next by Date: Re: Re: Re: Types in Mathematica
  • Previous by thread: Re: Re: Types in Mathematica thread
  • Next by thread: Re: Types in Mathematica thread