Homework problem

Round the four numbers −2π , −π , π and 2π to 5 significant digits and then square the resulting numbers

mynums <- pi * c(-2, -1, +1, +2) 
signif(mynums, 5)
mynums^2

I don't know how to correct this, can you please tell me what is wrong with my code and how to change

You need to assign your result steps to variables, e.g. mynums <- signif(mynums, 5)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.