- Assign the value of
3to the variablex. - Assign the value
25to the variabley. - Assign the value of
xto the variabley. - Before printing it out, think about what the current values of
xandy. - What are the values of
xandy(check). - Now assign assign
xa new value of10. - Has the value of
ychanged? Why or why not? - Check the value of
y. - What is 3452?
- What is the square root of 1250?
- Make a numeric vector
aof the following numbers:3 9 12 17 -3 - Make another vector
bof the following numbers:1 2 3 4 -5 - Make a new vector
cthat concatenatesaandb. - How would you do element by element addition of
aandb? - How about element by element division?
- What is the length of
a, ofband ofc? - Check to see if
aandbare equal. - Make a vector
b3that is the vectorbrepeated three times in a row. - Use the
identical()function to check to see if all elements ofaequalaand ifaequalsb.