View the step-by-step solution to:

Universidad Nacional Agraria La Molina Departamento de Estadstica e Informtica Ciclo 2010 - 1 Segunda Tarea de Estadstica Computacional 1. Sea h( x,...

I would like help with question number 3.

Q3. To rotate a vector (x, y)T anticlockwise by θ radians, you premultiply it by the matrix.
cos(θ) −sin(θ)
sin(θ) cos(θ)
Write a program in R that does this for you.
(R code)
1 Universidad Nacional Agraria La Molina Departamento de Estadística e Informática Ciclo 2010 – 1 Segunda Tarea de Estadística Computacional 1. Sea ( 29 = = + + + + = n i i n x x x x n x h 0 2 1 , L . Escribir un programa en R para calcular ( 29 n x h , usando un bucle for . 2. Escribir un programa que obtenga los mismos resultados del ejercicio anterior usando (i) un bucle while y (ii) usando operaciones entre vectores (sin usar bucles). 3. Escribir un programa en R para rotar un vector ( 29 T y x , θ radianes en sentido antihorario. 4. Dado un vector x , calcular su media geométrica usando (i) un bucle y (ii) operaciones con vectores. 5. Escribir un programa en R para hallar la suma de cada tercer elemento de un vector x . 6. Escribir un programa que use un bucle para encontrar el valor mínimo de un vector x , sin usar las funciones predefinidas en R. La Molina, 23 de abril del 2010
Background image of page 1

Top Answer

We need you to clarify your question for our tutors! Clarification request: Dear... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online