Getting Started with Mathematica, Third Edition
Chapter 22 More About Lists
授業で使う目的に載っているデータをここに載せる。
Displaying Lists (p.151)
Example. The following pictures shows the Dow Jones Industrial Averages on the 15 trading days between July 7, 2008 and July 25, 2008:
djAvgs = {11231.96, 11384.21, 11147.44, 11229.02, 11100.54, 11055.19,
10962.54, 11239.28, 11446.66, 11496.57, 11467.34, 11602.50, 11632.38,
11349.28, 11370.69};
The Map Command (p.154)
Example. Let's try something that we educators do all the time--compute grades! Here's a (small) set of exam data for our students:
list2 = {{"John", 75, 62}, {"David", 62, 81}, {"Mary", 75, 91},
{"Janw", 31, 50}, {"Steve", 21, 31}}
Baseball standings (p.157)
Example. The following list represents the final standings of the American League Eastern Division Baseball teams for the 2007 regular season in the form {team, wins, losses}:
baseball = {{"Baltimore", 69, 93}, {"Boston", 96, 66},
{"New York", 94, 68}, {"Tampa Bay", 66, 96}, {"Toronto", 83, 79}};