# 1 in graphics programming the following standard

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

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: . In graphics programming, the following standard trigonometric identities are often used to rotate objects. cos(x + y ) = cos(x) cos(y ) − sin(x) sin(y ) sin(x + y ) = sin(x) cos(y ) + cos(x) sin(y ) Use these formulas to prove that ∀n ∈ Z+ , ∀x ∈ R, (cos(x) + i sin(x))n = cos(nx) + i sin(nx). Recall that i is the “imaginary unit”, i.e., the square root of −1 (so i2 = −1). Do not convert this problem to exponential notation and try to solve it in that form! Hint: This is actually simpler than it looks. If your equations seem very complicated, it is most likely because of a mistake in your algebra — everything is supposed to simplify nicely. 2. Deﬁne a function f recursively, as follows: f (1) = 1, f (2) = 5, f (n) = 5f (n − 1) − 6f (n − 2) ∀ n ￿ 3. Use complete induction to prove that f (n) = 3n − 2n for every positive integer n. 3. Recall the recursive deﬁnition of complete binary tree s: • a single node is a complete binary tree, • if T1 and T2 are complete binary trees with the same height, then the tree constructed by placing T1 and T2 under a new root node (as illustrated below on the left) is also a complete...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern