1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: [fortran90] cartesian to polar coordinate

  1. Oct 28, 2013 #1
    Write a short FORTRAN90 subroutine to convert Cartesian coordinates (x, y, z) to spherical polar coordinates (r, q, f) using
    • Write a FORTRAN90 program which uses this subroutine to convert the following (x, y, z) coordinates which are read from a text file and stored within a single vector (1D allocatable array) – (3.0, 4.5, -1.0) , (5.2, 2.6, 1.4) , (-1.0, -1.0, 0.0) , (0.0, 3.0, 3.0)
    • Note that: – Both q and f should be output in degrees with 0 £ q £ 180º and 0 £ f < 360º – Both the program and the subroutine should be edited as separate files – The program should be able to convert any number of points and the results should be written to a text file.

    this is the problem...
    plz... code this in fortran
  2. jcsd
  3. Oct 28, 2013 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    Yak, you have been tragically mis-informed. PF is not a job-shop code shack. You've got to do all your own coding.
  4. Oct 28, 2013 #3

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    Thread closed.

    2000yak, read your private messages.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook