next up previous
Next: Quadratic equation solver Up: Control StructureIntrinsics and Previous: Concatenate Names

 

Point on a circle

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

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

  1. tex2html_wrap_inline2907 , tex2html_wrap_inline2909
  2. tex2html_wrap_inline2911 , tex2html_wrap_inline2913
  3. tex2html_wrap_inline2911 , tex2html_wrap_inline2917
  4. tex2html_wrap_inline2919 , tex2html_wrap_inline2921
  5. tex2html_wrap_inline2907 , tex2html_wrap_inline2925

tex2html_wrap2957

Hint: remember that

displaymath2895

and

displaymath2896


next up previous
Next: Quadratic equation solver Up: Control StructureIntrinsics and Previous: Concatenate Names

Adam Marshall ©University of Liverpool, 1996
Wed Oct 9 17:39:48 BST 1996