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_inline3202 and an angle, tex2html_wrap_inline3204 , in degrees which prints out the corresponding tex2html_wrap_inline3206 co-ordinates. Recall that arguments to trigonometric functions are in radians.

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

  1. tex2html_wrap_inline3210 , tex2html_wrap_inline3212
  2. tex2html_wrap_inline3214 , tex2html_wrap_inline3216
  3. tex2html_wrap_inline3214 , tex2html_wrap_inline3220
  4. tex2html_wrap_inline3222 , tex2html_wrap_inline3224
  5. tex2html_wrap_inline3210 , tex2html_wrap_inline3228

tex2html_wrap3230

Hint: remember that

displaymath3198

and

displaymath3199

Go back to Notes gif




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

©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.