A variable can be defined as a number or a string made up of the same digits. fo
ID: 3666159 • Letter: A
Question
A variable can be defined as a number or a string made up of the same digits. for example as shown below x is defined to be the number 536 and y is defined to be a string made up of the digits 536. The two variables are not the same even they appear identical on the screen Note that the character 536 in the line below the x = are indented, while the characters 536 in the line below . y = are not indented. The variable x can be used m mathematical expressions, whereas the variable y cannot. Create a row vector that has the following elements: 8, 10/4 . 12 times 1.4, 51, tjn85^degree ,SQUAREROOT26, and 0.15. Create a row vector that has the following elements: SQUAREROOTl5 times 10^3, 25 / 14 -6^2.Explanation / Answer
Multiple Questions : Answering 2.11 Problem 1.
> new <- c(8,10/4,12*1.4,51, tan(87*pi/180),sqrt(26),0.15)
new is the row vector created with the desired values.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.