How to access inserted data from table?

 How to access inserted data from table?

I’m inserting a number into the first column of a table, but when I call the table again, the number is not there anymore. Can someone explain to me what I’m doing wrong here?

In[22]:= mass[n]

Out[22]= {5.07637*10^24, 8.24164*10^24, 2.4486*10^24, 3.70276*10^24, 
4.0611*10^24, 8.00275*10^24, 2.74721*10^24}

In[23]:= Insert[mass[n], 1.59084*10^29, 1]

Out[23]= {1.59084*10^29, 5.07637*10^24, 8.24164*10^24, 2.4486*10^24, 
3.70276*10^24, 4.0611*10^24, 8.00275*10^24, 2.74721*10^24}

In[24]:= mass[n][[1]]

Out[24]= 5.07637*10^24

In[25]:= mass[n]

Out[25]= {5.07637*10^24, 8.24164*10^24, 2.4486*10^24, 3.70276*10^24, 
4.0611*10^24, 8.00275*10^24, 2.74721*10^24}

Let’s block ads! (Why?)

Recent Questions – Mathematica Stack Exchange