hw03_FA05 - This program may be written in C, C++, Fortran,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
R.G. Melton AERSP 309 HW #3 Fall 2005 (Due Friday Sept. 23 at beginning of class) 1. (10 points) Prob. 5, Wiesel, p. 40. 2. (10 points) Prob. 6, Wiesel, p. 40. 3. (30 points) Write a computer program that takes as input 2 rotation angles α and β (in degrees) and calculates the DCM’s C 3 ( ) and C 1 ( β ) -- corresponding to a rotation about the 3-axis and a rotation about the 1-axis, respectively. Then calculate the product D = C 1 C 3 . The program should output the following (ALL labelled and with their names and units, if any): a.) the input angles b.) C 1 , C 3 , D Run the program for the case α = 49 deg., β = 133 deg. and print the output. Hand in a listing of your program and the printed output.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: This program may be written in C, C++, Fortran, Matlab, or Visual Basic. Also, Mathematica and MathCad are acceptable for this homework, but they will be rather difficult to use for later assignments. Remember that most compilers/interpreters use radians for angles. Be sure to save this program file since you will use it in a later assignment. You will find it useful to write separate functions, methods, or subroutines to calculate C 1 and C 3 . Pass the value of the angle as an input and return the DCM as the result. A similar approach for multiplying two DCMs is also useful....
View Full Document

This note was uploaded on 07/23/2008 for the course AERSP 309 taught by Professor Melton during the Fall '05 term at Pennsylvania State University, University Park.

Ask a homework question - tutors are online