Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how

Legacy Documentation

Mathematica 8 (2010)

This is documentation for Mathematica 8, which was
based on an earlier version of Wolfram Language.
View current documentation (Version 14.3)
MATHEMATICA TUTORIAL
|Related Tutorials »

Collecting Objects Together

We first encountered lists in "Making Lists of Objects" as a way of collecting numbers together. Here, we shall see many different ways to use lists. You will find that lists are some of the most flexible and powerful objects in Mathematica. You will see that lists in Mathematica represent generalizations of several standard concepts in mathematics and computer science.
At a basic level, what a Mathematica list essentially does is to provide a way for you to collect together several expressions of any kind.
Here is a list of numbers.
Out[1]=
This gives a list of symbolic expressions.
Out[2]=
You can differentiate these expressions.
Out[3]=
And then you can find values when is replaced with .
Out[4]=
The mathematical functions that are built into Mathematica are mostly set up to be "listable" so that they act separately on each element of a list. This is, however, not true of all functions in Mathematica. Unless you set it up specially, a new function that you introduce will treat lists just as single objects. "Applying Functions to Parts of Expressions" and "Structural Operations" will describe how you can use Map and Thread to apply a function like this separately to each element in a list.


ja zh

AltStyle によって変換されたページ (->オリジナル) /