>
> Please quite loudly tell us *everything* you are going to miss from
> Mathematica.  We want to know!
>

I can tell some things that I know how to do in Mathematica but don't
know how to do in sage.
Here are two such for starters.

1.  ListPlot
http://reference.wolfram.com/mathematica/ref/ListPlot.html

The function ListPlot plots a list of numbers, or ordered pairs of
numbers.  So to illustrate the central limit theorem
we can simply write:

Table[Sum[Random[],{10}],{1000}]//Sort//ListPlot

This generates 1000 sums X_1+...+X_10, with X_i uniform in the unit
interval; sorts these sums; and then plots the resulting list,
giving a very convincing graph (turned on its side) of the cumulative
distribution for a Gaussian random variable.

2.   Listable
http://reference.wolfram.com/mathematica/ref/Listable.html

The attribute Listable enables automatic threading over lists,
including nested lists and specifically matrices.

In[15]:= N[{{1,2},{3,4}}]

Out[15]= {{1., 2.}, {3., 4.}}

In[16]:= Log[{{1,2},{3,4}}]

Out[16]= {{0, Log[2]}, {Log[3], Log[4]}}

In[24]:= barf[{{1,2},{3,4}}]

Out[24]= barf[{{1, 2}, {3, 4}}]

In[25]:= SetAttributes[barf,Listable]

In[26]:= barf[{{1,2},{3,4}}]

Out[26]= {{barf[1], barf[2]}, {barf[3], barf[4]}}



Cheers,

Peter


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to