next up previous contents
Next: Quadratic equation solver Up: Point on a circle Previous: Point on a circle

Solution

    PROGRAM x_y
     IMPLICIT NONE
      REAL :: r, theta, pi, theta_in_radians
       pi = ATAN(1.0)*4.0
       PRINT*, "Type in r and Theta (in degrees)"
       READ*, r, theta
       theta_in_radians = (theta/180.0)*pi
       PRINT*, "( x,y ) is ( ",r*COS(theta_in_radians),&
              ",",r*SIN(theta_in_radians)," )"
    END PROGRAM x_y

  1. tex2html_wrap_inline3210 , tex2html_wrap_inline3212 . tex2html_wrap_inline3236
  2. tex2html_wrap_inline3238 , tex2html_wrap_inline3216 . tex2html_wrap_inline3242
  3. tex2html_wrap_inline3238 , tex2html_wrap_inline3220 . tex2html_wrap_inline3248
  4. tex2html_wrap_inline3222 , tex2html_wrap_inline3224 . tex2html_wrap_inline3254
  5. tex2html_wrap_inline3210 , tex2html_wrap_inline3228 . tex2html_wrap_inline3236


next up previous contents
Next: Quadratic equation solver Up: Point on a circle Previous: Point on a circle

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