Results 1 to 2 of 2

Thread: Polar Plots

  1. #1

  2. #2
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    I suppose you can transform your polar coordinates to rectangular. For example, take a function like

    r = sin(3*alpha)

    r being the radius (distance to the origin) and alpha the polar angle.

    The scheme would be something like:

    VB Code:
    1. For alpha = alpha1 to alpha2 step DeltaAlpha
    2.     r = sin(3*alpha)
    3.     x=r*cos(alpha)
    4.     y=r*sin(alpha)
    5. 'and here you can place the plotting part
    6. 'such as (if it's a picturebox):
    7.     Picture1.Line -(x,y)
    8. Next

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width