6. Write a function EXPCR( ) which accepts a 3 × 1 vector x = the 3 x 3 rotation matrix which represents a rigid-body rotation of angle ||x|| radians about the fixed axis n = x/||x||. Your function should use SKEW3( ) and Rodrigues' formula (FYI, using the built-in function EXPM() will be the same). Note that when using Rodrigues' formula, your code has to be general enough to include all possible x's. [x1,x2, x3]. The function should return

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section: Chapter Questions
Problem 4PP
icon
Related questions
Question

2.

 

6. Write a function EXPCR ( ) which accepts a 3 x 1 vector x = [x1, x2, x3]1. The function should return
the 3 x 3 rotation matrix which represents a rigid-body rotation of angle ||x|| radians about the fixed
axis n =
x/||x||. Your function should use SKEW3( ) and Rodrigues' formula (FYI, using the built-in
function EXPM() will be the same). Note that when using Rodrigues' formula, your code has to be
general enough to include all possible x's.
Transcribed Image Text:6. Write a function EXPCR ( ) which accepts a 3 x 1 vector x = [x1, x2, x3]1. The function should return the 3 x 3 rotation matrix which represents a rigid-body rotation of angle ||x|| radians about the fixed axis n = x/||x||. Your function should use SKEW3( ) and Rodrigues' formula (FYI, using the built-in function EXPM() will be the same). Note that when using Rodrigues' formula, your code has to be general enough to include all possible x's.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Vectors
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr