Try now in the
Open Cloud »
(no sign-in required)

Powers of Ten History

Find when it was 10, 100, 1,000, 10,000, etc. days ago.

Run the code to find the current date:

SHOW/HIDE DETAILS

This gives todays date:

In[1]:=
X
Out[1]=

You can also get yesterdays date and tomorrows:

In[2]:=
X
Out[2]=
In[3]:=
X
Out[3]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Find the date exactly 100 days ago. Try other numbers of days:

SHOW/HIDE DETAILS

DatePlus adds a number of days to a date.

This gives the date 10 days from now:

In[1]:=
X
Out[1]=

This gives the date 100 days ago:

In[2]:=
X
Out[2]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Make a table of the first 9 powers of 10. Try different numbers of powers:

SHOW/HIDE DETAILS

Were going to want to look at dates in powers of 10.

This is how to use Table to make a list of the first 9 powers of 10:

In[1]:=
X
Out[1]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Make a table of powers of 10 dates. Try more than 5 dates:

SHOW/HIDE DETAILS

This makes a list of dates in increasing powers of 10 days ago:

In[1]:=
X
Out[1]=

Use DateString to format the date objects as text strings.

This gives today as a date object:

In[2]:=
X
Out[2]=

This converts the date object to a text string:

In[3]:=
X
Out[3]=

Make every element of the date list a text string:

In[4]:=
X
Out[4]=

Format the list as a column (you can use either the ...//Column form or the Column[...] form; they mean the same thing):

In[5]:=
X
Out[5]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Include the number of days in a table. Try ranges other than 5:

Note: if you change the increment from 10, you have to change both occurrences of 10.

SHOW/HIDE DETAILS

This makes a list of lists. Each sublist has a number of days, and the date that many days ago:

In[1]:=
X
Out[1]=

Format the list of lists as a grid. Each sublist is a row in the grid:

In[2]:=
X
Out[2]=

Use FrameAll to add frame lines:

In[3]:=
X
Out[3]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Share ItMake a website that gives powers of ten tables for dates:

SHOW/HIDE DETAILS

Deploy a form that gives you a power of ten table for a date you specify:

In[1]:=
X
Out[1]=

Click the link in the output to visit the site.

Share the link by right-clicking it and choosing Copy Address. Paste the link into an email, tweet, or other message.

HIDE DETAILS
In[1]:=
X
Out[1]=