0
|
3967 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
GROUPS:

# Why the Total[{}] operation on a list does not give me the total ?

Posted 10 years ago
 I have the following operation on a list: In[69]:= Total[{"{0.000019245008972987524}", "{0.00001886580626702042}", "{0.000017455790451689365}", "{0.00001963576060910879}", "{0.000019245008972987524}", "{0.000017793092615557995}", "{0.000020882171194647923}", "{0.00002045383034646352}", "{0.00001886580626702042}"}] Out[69]= "{0.000017455790451689365}" + "{0.000017793092615557995}" + 2 "{0.00001886580626702042}" + 2 "{0.000019245008972987524}" + "{0.00001963576060910879}" + \ "{0.00002045383034646352}" + "{0.000020882171194647923}"  Why don't I get the result of the addition? Can anybody give me a hint?
4 Replies
Sort By:
Posted 10 years ago
 Bill, thank you very much. I got it now. Moses
Posted 10 years ago
Posted 10 years ago
 Bill, Was there supposed to be something here? Moderation Team
Posted 10 years ago
 Compare ...In[15]:= Total[{"1", "2", "3"}]Out[15]= "1" + "2" + "3"In[16]:= Total[{1, 2, 3}]Out[16]= 6In[17]:= Total[ToExpression[{"1", "2", "3"}]]Out[16]= 6