next up previous contents
Next: Solution Up: Control StructureIntrinsics and Previous: Solution

 

Point on a circle

Write a program to read in a vector defined by a length, tex2html_wrap_inline2804 and an angle, tex2html_wrap_inline2806 , in degrees which prints out the corresponding tex2html_wrap_inline2808 co-ordinates. Recall that arguments to trigonometric functions are in radians.

Demonstrate correctness by giving the tex2html_wrap_inline2808 co-ordinates for the following vectors

  1. tex2html_wrap_inline2812 , tex2html_wrap_inline2814
  2. tex2html_wrap_inline2816 , tex2html_wrap_inline2818
  3. tex2html_wrap_inline2816 , tex2html_wrap_inline2822
  4. tex2html_wrap_inline2824 , tex2html_wrap_inline2826
  5. tex2html_wrap_inline2812 , tex2html_wrap_inline2830

tex2html_wrap2832

Hint: remember that

displaymath2800

and

displaymath2801




next up previous contents
Next: Solution Up: Control StructureIntrinsics and Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996