The Mathematica Journal
Departments
Feature Articles
Columns
New Products
New Publications
Classifieds
Calendar
News Bulletins
Mailbox
Letters
Write Us
About the Journal
Staff and Contributors
Submissions
Subscriptions
Advertising
Back Issues
Home
Download this Issue


Representations of Data in Mathematica

If I enter a list in Mathematica, its internal representation may be different from the OutputForm.

[Graphics:../Images/index_gr_1.gif]
[Graphics:../Images/index_gr_2.gif]

The basic common representation for lists (and all expressions) is given by the FullForm.

[Graphics:../Images/index_gr_3.gif]
[Graphics:../Images/index_gr_4.gif]

Each integer you see in the list is itself an expression. Internally in the Mathematica C code, the data stored carries information about the type of the expression (in this case, list, or number, which is a machine integer).

If I enter the data a different way, it is internally stored in a different way.

[Graphics:../Images/index_gr_5.gif]
[Graphics:../Images/index_gr_6.gif]

The basic print forms are all the same. For all intents and purposes these are the same.

[Graphics:../Images/index_gr_7.gif]
[Graphics:../Images/index_gr_8.gif]

You can only tell that they are stored in a different way by using a Developer` context function.

[Graphics:../Images/index_gr_9.gif]
[Graphics:../Images/index_gr_10.gif]


Converted by Mathematica      May 1, 2000

[Article Index] [Prev Page][Next Page]